September 2002
Intermediate to advanced
608 pages
14h 20m
English
The Ant buildfile for the layered application is shown in Listing 3.18. This buildfile is named layered.xml and located in the nfl directory on the CD.
In addition to the <compile>, <clean>, and <test> targets that were present in the original version of the buildfile, we add a new target named <jar>. This target creates a JAR file of all the application classes, which makes it easier to distribute the application. The <test> target has been modified to run the application out of the JAR file.
The <jar> target uses Ant's built-in <jar> task to accomplish its work. The <jar> task has a number of attributes that can be specified; we are using four of the more commonly used in this example. The ...
Read now
Unlock full access