|
NAMEbuild.xml - configuration file used by ant to build projectsDESCRIPTIONThe file build.xml is the default configuration file used by ant to determine target to build for a specific project. It can be considered the ant equivalent of Makefile..The format of ant is XML and for each project a seperate file is constructed. The buildfile consists of one or more tasks. An example is given below. <project default="compile"> <target name="compile"> <javac srcdir="src"> </target> </project> This example has one target and it is defaulted. The target itself consists of one task javac which compiles the files in the src directory. TARGETSTargets can depend on other targets. These dependencies are given by the depends attribute of the <target> element.TASKSA task is a piece of code that is executed. Ant recognizes built-in task, optional tasks, but one can also write new tasks.Built-in tasks The built-in tasks are: Ant, AntCall, AntStructure, Apply, Available, Chmod, Copy, Cvs, Delete, Deltree, Echo, Exec, ExecOn, Fail, Filter, FixCRLF, GenKey, Get, GUnzip, GZip, Jar, Java, Javac, Javadoc/Javadoc2, Mail, Mkdir, Move, Patch, Property, Replace, Rmic, SignJar, Sql, Style, Tar, Taskdef, Touch, TStamp, Unjar, Untar, Unwar, Unzip, Uptodate, War, Zip
PropertiesA project can have a set of properties, which consist of a name value combination. Within tasks they can be used by placing them between "${" and "}", as in "${builddir}/classes".Built-in Properties Ant provides access to all system properties as if they had been defined using a <property> task. For example, ${os.name} expands to the name of the operating system.
ClasspathThe classpath can be set by using the <classpath> element:<classpath> <pathelement path="${classpath}"/> <pathelement location="lib/helper.jar"/> <fileset dir="lib"> <include name="**/*.jar"/> </fileset> </classpath> SEE ALSOant(1)AUTHORThis manpage is made by Egon Willighagen <egonw@sci.kun.nl> and based on the Ant Manual <http://jakarta.apache.org/ant/manual/>.
Visit the GSP FreeBSD Man Page Interface. |