Jump to: navigation, search


459 bytes added, 14:47, 14 October 2010
Some Tips to remember
==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="">
<!-- Call the target that does everything -->
<ant antfile="build.xml" target="assign1.test"/>
<target name="myTarget.check" depends="">
<echo>The was called!</echo>

Navigation menu