Call : (+91) 99 8080 3767
Mail :

Apache ANT

( Duration: 1 Day )

The Apache ANT training course is aimed at those looking to learn the ANT build tool. You will first be taken through the fundamentals of building an ANT script by examining the structure of an ANT file, and seeing how to use properties. Following that, they will be taken through several common scenarios where ANT is used (e.g. building Java code, deploying/testing, coordinating with CVS, etc) and learn what tasks are available in each appropriate case, writing scripts as necessary. Finally, advanced topics such as integrating ANT with Eclipse and even extending ANT will be discussed.

By attending Apache ANT workshop, delegates will learn to:

  • Understand the structure of an ANT script
  • Know how to create an ANT script to:
    • Build Java Code
    • Deploy Java Code
    • Test Java Code with JUnit
    • Check code into/out of CVS
    • Write Custom ANT tasks

  • Basic understanding of Java code and XML.

Java Developers/QA members/Administrators interested in how to understand/write ANT scripts.



ANT Overview

  • History of ANT
  • The Build File
  • Running Ant

Properties and Types

  • Using Properties from Tasks
  • Property Files
  • Property Typing

Building Java Code With ANT

  • The javac task
  • User input and calling other tasks
  • Creating JAR files
  • Build Numbers and Timestamps

Deploying With ANT

  • Creating TAR and ZIP files
  • Deploying by Copying/Moving/FTP
  • Automatic Builds

JUnit Testing With ANT

  • JUnit overview
  • Running tests
  • Running test batches

Using CVS With ANT

  • The cvs task
  • Connecting to and working with a CVS server
  • Version control with ANT
  • Change tracking

Running Additional Code

  • Executing Java code from ANT
  • Executing external programs from ANT
  • Batch execution and execution order


  • WAR files
  • CAB files
  • Using ANT with Tomcat
  • Deploying EJBs


  • Reading properties from XML
  • Creating DTDs for ANT tasks
  • XSLT
  • XDoclet
  • EJB deployment descriptors

Optional Tasks

  • Sound Effects
  • Text substitution
  • Dependencies

ANT and Eclipse

  • Running ANT scripts
  • Changing ANT version
  • The ANT view

Extending ANT

  • Creating A Custom Task
  • Extending Task
  • Creating Listeners
  • Creating Loggers
  • Creating Filters
  • Creating Selectors
  • Creating Additional Types

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.