April 2017
Beginner
504 pages
14h 11m
English
When you see a project to be built by Ant, you will see a build.xml file. This is the project build file, the one that Ant was missing when you checked that the installation was correct. It can have any other name, and you can specify the name of the file as a command-line option for Ant, but this is the default file name, as Makefile was for make. A build.xml sample looks like the following:
<project name="HelloWorld" default="jar" basedir="."> <description> This is a sample HelloWorld project build file. </description> <property name="buildDir" value="build"/> <property name="srcDir" value="src"/> <property name="classesDir" value="${buildDir}/classes"/> <property name="jarDir" value="${buildDir}/jar"/> <target name="dirs"> ...Read now
Unlock full access