Open main menu

CDOT Wiki β

Changes

User:Minooz/Ant

409 bytes added, 09:05, 14 October 2010
Tutorials
::set JAVA_HOME=...
::set PATH=%PATH%;%ANT_HOME%\bin
:ant buildfiles are written in XML – build.xml. Each buildfile contains one project and at least one (default) target.
:Targets contain task elements
<code>
<?xml version="1.0"?>
<!-- compile java files from all subdirectories -->
<project name="First" default="build" basedir=".">
<target name="build" >
<javac srcdir="."
debug="false"
optimize="false"
includes="**/*.java"
/>
</target>
</project>
</code>
1
edit