Changes

Jump to: navigation, search

User:Minooz/RepoSyncProj/Ant

459 bytes added, 14:47, 14 October 2010
Some Tips to remember
</source>
==Some Tips to remember==
:In Cygwin in the ''build'' folder. Just typing <code>ant</code>, will build the default target of the project. But typing <code>ant assign1.test</code> for example, will start from mentioned target.
:Also, option -f will build any files that's not named ''build.xml'' e.g. <code>ant -f buildHudson.xml</code>
:We can use a new ant script that triggers the target of main build file of the project. See below:
<source lang=java>
 
 
<project name="assign1_MY" basedir="." default="myTarget">
<target name="assign1.build.call">
<!-- Call the target that does everything -->
<ant antfile="build.xml" target="assign1.test"/>
</target>
<target name="myTarget.check" depends="assign1.build.call">
<echo>The assign1.build was called!</echo>
</target>
</project>
</source>
1
edit

Navigation menu