Repository: ant-antlibs-common Updated Branches: refs/heads/master 3186172da -> ea250187d
documentation; split into 2 phases Project: http://git-wip-us.apache.org/repos/asf/ant-antlibs-common/repo Commit: http://git-wip-us.apache.org/repos/asf/ant-antlibs-common/commit/ea250187 Tree: http://git-wip-us.apache.org/repos/asf/ant-antlibs-common/tree/ea250187 Diff: http://git-wip-us.apache.org/repos/asf/ant-antlibs-common/diff/ea250187 Branch: refs/heads/master Commit: ea250187d28d303057dfe81848f8ab4c8b15c5fe Parents: 3186172 Author: Jan Mat�rne <[email protected]> Authored: Wed Jun 4 08:14:18 2014 +0200 Committer: Jan Mat�rne <[email protected]> Committed: Wed Jun 4 08:14:18 2014 +0200 ---------------------------------------------------------------------- prepare.xml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ant-antlibs-common/blob/ea250187/prepare.xml ---------------------------------------------------------------------- diff --git a/prepare.xml b/prepare.xml index cb0ff6e..b6d6b12 100644 --- a/prepare.xml +++ b/prepare.xml @@ -28,18 +28,23 @@ directive. Until we have that, we could do a 'manual' git-clone. The original of this snippet is maintained in the antlib-common project. --> -<project xmlns:unless="ant:unless" xmlns:if="ant:if"> +<project default="bootstrap" xmlns:unless="ant:unless" xmlns:if="ant:if"> + <!-- AntLib-common Git-URL, so we could 'svn:external' that manually. --> <property name="antlib.common.git" value="https://git-wip-us.apache.org/repos/asf/ant-antlibs-common.git"/> + <!-- Git executable --> <property name="git" value="git"/> + <!-- Which released version of AntUnit to use, where to download, where to store. --> <property name="antunit.version" value="1.3"/> <property name="antunit.url" value="http://repo1.maven.org/maven2/org/apache/ant/ant-antunit/${antunit.version}/ant-antunit-${antunit.version}.jar"/> <property name="antunit.file" value="ant-antunit.jar"/> + <!-- Skip unnecessary tasks. --> <available property="common.present" file="common" type="dir"/> <available property="antunit.present" file="${antunit.file}"/> + <target name="clone-common" unless="common.present"> <echo message="cloning antlib-common"/> <exec executable="${git}" taskname="git"> @@ -66,6 +71,23 @@ The original of this snippet is maintained in the antlib-common project. <get src="${antunit.url}" dest="${antunit.file}" usetimestamp="true"/> </target> - <target name="update" depends="clone-common,update-common,update-prepare-script,get-antunit"/> + + <!-- Use a 'bootstrap-phase' so changes of the preparation could be catched in the same CI-cycle. --> + <target name="bootstrap" + depends="clone-common,update-common,update-prepare-script" + description="Bootstraps the preparation script by cloning the antlib-common and updating this script from there." + > + <echo>Bootstrap done. Next step:</echo> + <echo> ant -f ${ant.file.name} prepare</echo> + </target> + + <target name="prepare" + depends="get-antunit" + description="Prepare the build by 'preparing' the infrastructure" + > + <echo>Preparation done. Next steps:</echo> + <echo> ant clean distribution</echo> + <echo> ant -lib ${antunit.file} -lib build/lib test</echo> + </target> </project> \ No newline at end of file
