
Untitled
By: a guest on
Aug 5th, 2012 | syntax:
None | size: 0.70 KB | hits: 8 | expires: Never
Modifying an existing task to add a new dependency
|-- build-common.xml
`-- build.xml
$ ant debug
Buildfile: /home/mark/tmp/build.xml
-prebuild-copy:
[echo] PREBUILD TARGET
common.debug:
[echo] I AM A DEBUG TARGET
debug:
[echo] MY DEBUG TASK
<project name="build-common">
<target name="debug">
<echo message="I AM A DEBUG TARGET"/>
</target>
</project>
<project name="demo" default="debug">
<include file="build-common.xml" as="common"/>
<target name="-prebuild-copy">
<echo message="PREBUILD TARGET"/>
</target>
<target name="debug" depends="-prebuild-copy, common.debug">
<echo message="MY DEBUG TASK"/>
</target>
</project>