Created
September 11, 2014 15:37
-
-
Save anonymous/6a3660c787319ccb285b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project name="build-common" xmlns:ivy="antlib:org.apache.ivy.ant"> | |
<dirname property="build-common-ant-common.basedir" file="${ant.file.build-common}" /> | |
<import file="${build-common-ant-common.basedir}/build-common-ant-ivy.xml" /> | |
<target name="init" /> | |
<target name="service-version" depends="build-number"/> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<project name="ivy-common" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant"> | |
<target name="load-ivy-tasks" unless="complete.ivy-common.load-ivy-tasks"> | |
</target> | |
<target name="init" depends="load-ivy-tasks" unless="${ivy.offline}"> | |
</target> | |
<target name="build-number" description="publish module with ivy" depends="resolve,init" unless="${ivy.offline}"> | |
</target> | |
<target name="resolve" depends="init" unless="${ivy.offline}"> | |
</target> | |
<target name="report" depends="resolve,init" unless="${ivy.offline}"> | |
</target> | |
<!-- COMMENT FROM HERE TO ... | |
--> | |
<target name="deliver" depends="resolve,build-number,init" unless="${ivy.offline}"> | |
</target> | |
<target name="-determine-release" depends="init"> | |
</target> | |
<target name="-publish" description="publish module with ivy" depends="resolve,build-number,init" unless="${ivy.offline}"> | |
</target> | |
<target name="-determine-tagging" depends="-determine-release"> | |
</target> | |
<target name="publish" description="publish module with ivy and tag git" depends="-publish,-determine-tagging" if="${vineyard.tag-git}"> | |
</target> | |
<!-- ... HERE TO MAKE THE BUILD WORK | |
--> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ant.importBuild 'build.xml' | |
task hello{ | |
println tasks['build-number'].path | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="example" basedir="." default="export" xmlns:ivy="antlib:org.apache.ivy.ant"> | |
<import file="build-common-ant-common.xml" /> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment