This is an Ant Tutorial, to learn by example how to use Ant to build your Java projects. Ant is a Java-based build tool from the Apache project that was originally bundled with early versions of Tomcat. Its creator had become dissatisfied with make as a way of building Tomcat from source and developed a tool to make his life easier. Ant was designed to fix the problems with make described previously and so mirrored the portability aims of Java. The build tools helps the programmers to build their complex application and place the files in the desired location with less effort. The Ant is different tool then make , gnumake , nmake , jam build tool as Instead of a model where it is extended with shell-based commands, Ant is extended using Java classes. Instead of writing shell commands, the configuration files are XML-based, calling out a target tree where various tasks get executed. Each task is run by an object that implements a particular Task interface in ant.



Table of Contents
   1 Introduction
   2 Library Dependencies
   3 Necessary Elements Of the Build File-1
   4 Neccessary Elements Of the Build File-2
   5 Writing Your First Buildfile
   6 Integration Of Ant With IDE Eclipse
   7 Command-line Arguments
   8 ANT Command Options Summary
   9 Properties in ANT
10 Example to print the existing properties using ANT.
11 Adding lib files in Classpath from the Ant Script
12 Creating and deleting the directories from Ant Scripts.
13 Working with Files.
14 Example to Create the Jar files
15 Creating the War files using the ANT Scripts
16 Ear Command in Ant
17 Generics
18 Annotation Processing Tool ( APT )
19 More Enhancements in Tiger.
20 Java Compiler (javac) and Debugger
21 Java Web Start in J2SE 5.0
22 General Deployment Enhancements in J2SE 5.0



                    

Copyright © 2014 VisualBuilder. All rights reserved