EncartaLabs

Apache ANT

( Duration: 1 Day )

The Apache ANT training course is aimed at those looking to learn the ANT build tool. Participants 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, Participants 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

  • Participants should have a basic understanding of Java code and XML.

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

COURSE AGENDA

1

ANT Overview

  • History of ANT
  • The Build File
  • Running Ant
2

Properties and Types

  • Using Properties from Tasks
  • Property Files
  • Property Typing
3

Building Java Code With ANT

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

Deploying With ANT

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

JUnit Testing With ANT

  • JUnit overview
  • Running tests
  • Running test batches
6

Using CVS With ANT

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

Running Additional Code

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

ANT and JEE

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

ANT and XML

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

Optional Tasks

  • Sound Effects
  • Text substitution
  • Dependencies
11

ANT and Eclipse

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

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 3,500 Modules 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 20,000 corporate candidates across india and abroad
  • All our trainings are conducted in workshop mode with more focus on hands On

View our other course offerings by visiting www.encartalabs.com/course-catalogue

Contact us for delivering this course as a public/open-house workshop for a group of 10+ candidates at our venue

Top