Introduction to Ant

What Is Ant?
Installing Ant
Ant Structure
Running Ant From the Command Line
Running Ant From an IDE

Ant Tasks

Overview
Compile Tasks
Archive Tasks
File Tasks
JavaDoc Tasks
Property Tasks
Version Control Tasks
JUnit Tasks
Mail Tasks
Remote Tasks
XML Tasks

Ant Elements

Overview
PatternSet
DirSet
FileSet
FileList
FileMapper
FilterReader and FilterChain
Selectors
ClassFileSet
Paths
Listeners and Loggers

Full Example

End to End Build
Building a Skeleton
Defining Properties
The Init Task
Starting and Stopping Logging
The Prepare Task
Fetching the Source Code
Compiling
Testing With JUnit2
Building the WAR File
Deploying
Sending Email Reports
Running the Example

Spread the love