Open main menu

CDOT Wiki β

Changes

User:Minooz/Ant

721 bytes added, 10:42, 14 October 2010
Tutorials
==Tutorials==
* [http://individual.utoronto.ca/kia/ Eclipse based Tutorial ]
* Notes from [[User:JAnastasiade| Jordan Anastasiade]] tutorialNotes and [http://ant.apache.org/manual/ Apache Manual]
: Ant is a Java-based build tool. Instead of a model where it is extended with shell-based commands, ant is extended using Java classes
:Instead of writing shell commands, the configuration files are XML-based, calling out a target tree where various tasks get executed.
</project>
</source>
:A project has three attributes:'''name''': the name of the project. '''default''': the default target to use when no target is supplied. '''basedir''': the base directory from which all path calculations are done: Each project defines one or more targets which are a set of task elements you want to execute: When starting ant, you can select which target(s) you want to have executed
:A target has the following attributes: '''name''' : the name of the projecttarget. '''depends''': a comma-separated list of names of targets.'''if''': the name of the property that must be set in order for this target to execute
:It should be noted, however, that Ant'''default''' s depends attribute only specifies the order in which targets should be executed - it does not affect whether the target that specifies the dependency(s) gets executed if the default dependent target (s) did not (need to use when no target is supplied) run.
::'''basedirNOTE''' : In Cygwin in the ''build'' folder. Just typing ''ant'', will build the default target of the base directory from which all path calculations are done: Each project defines one or more targets which are a set of task elements you want to execute:When starting . But typing '' antassign1.test'' for example, you can select which target(s) you want to have executedwill build dependents too.
1
edit