From 90983c876112457ebbf3a623472ab85ae1a70281 Mon Sep 17 00:00:00 2001 From: dev <dev@welterde.de> Date: Thu, 27 Nov 2008 19:19:24 +0000 Subject: [PATCH] added inital version of a deploy script --- deploy.xml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 deploy.xml diff --git a/deploy.xml b/deploy.xml new file mode 100644 index 0000000000..9e56af3909 --- /dev/null +++ b/deploy.xml @@ -0,0 +1,41 @@ +<? xml version="1.0" encoding="UTF-8" ?> +<project basedir="." default="help" name="deploy"> + <property name="deploy.google.script" value="http://ant-googlecode.googlecode.com/files/ant-googlecode-0.0.1.jar" /> + <property name="dir" value="tmp-deploy" /> + + <property file="deploy.properties" /> + + <target name="help"> + <echo message="Useful targets: " /> + <echo message=" fetch: Fetch the files from the gatekeeper's site" /> + <echo message=" deploy: Deploy the files to the remote sites(currently google code only)" /> + </target> + <target name="init"> + <mkdir dir="${dir}" /> + </target> + <target name="fetch"> + <!-- TODO: write this(using eepget?) --> + </target> + <target name="pre-deploy" depends="init"> + <get src="${deploy.google.script}" dest="${dir}/ant-googlecode.jar" /> + <taskdef classname="net.bluecow.googlecode.ant.GoogleCodeUploadTask" classpath="path/to/ant-googlecode.jar" name="gcupload"/> + </target> + <target name="validate-deploy"> + <!-- check deploy.properties --> + <fail "Version not set" unless="app.version" /> + <fail "Google: Username not set" unless="deploy.google.username" /> + <fail "Google: Password not set" unless="deploy.google.password" /> + + <!-- TODO: check for existence of files --> + + <input message="Want to continue?" validargs="y,j,n" addproperty="deploy.continue" /> + <fail message="Aborted."> + <condition> + <equals arg1="${deploy.continue}" arg2="n" /> + </condition> + </fail> + </target> + <target name="deploy" depends="pre-deploy,validate-deploy"> + <!-- TODO: add all files --> + </target> +</project> -- GitLab