Skip to content

Instantly share code, notes, and snippets.

Created September 11, 2014 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6a3660c787319ccb285b to your computer and use it in GitHub Desktop.
Save anonymous/6a3660c787319ccb285b to your computer and use it in GitHub Desktop.
<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>
<?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>
ant.importBuild 'build.xml'
task hello{
println tasks['build-number'].path
}
<?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