Java Reference
In-Depth Information
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<!-- Specify what to compile. This builds everything -->
<target name="compile" depends="init">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}"
classpath="../darwinsys-api.jar"/>
</target>
</project>
When you run Ant, it produces a reasonable amount of notification as it goes:
$ ant compile
Buildfile: build.xml
Project base dir set to: /home/ian/javasrc/starting
Executing Target: init
Executing Target: compile
Compiling 19 source files to /home/ian/javasrc/starting/build
Performing a Modern Compile
Copying 22 support files to /home/ian/javasrc/starting/build
Completed in 8 seconds
$
See Also
The following sidebar and Ant: The Definitive Guide by Steve Holzner (O'Reilly).
Search WWH ::




Custom Search