Introduction to ANT


Introduction to ANT


Apache Ant is a powerful way to convert your developmental structures to deployment structures. It is declarative and all the command line tasks used for deploying an application are represented by simple XML elements.

A Java-based build tool.

Ant is a free tool under GNU License and is freely available at ANT Site, current version of ant is 1.7.1.

Ant allows the developer to automate the repeated process involved in the development of J2EE/J2SE application.

Developers can easily write the script to automate the build process like compilation, archiving and deployment.

Ant (originally an acronym for Another Neat Tool), is a build tool with special support for the Java programming language but can be used for just about everything. Ant is platform-independent; it is written purely in Java. Ant is particularly good at automating complicated repetitive tasks and thus is well suited for automating standardized build processes. Ant accepts instructions in the form of XML documents thus are extensible and easy to maintain.

The Official Definition:
“Apache Ant is a Java-based build tool. In theory, it is kind of like make, without make’s wrinkles.”
-  ant.apache.org

It can take care of archiving, compilation, execution, documentation, deployment, and much more.

Ant is cross platform and portable.

Ant is well suited to a large number of automation and scripting tasks.

Ant is not a coding language.

Ant uses XML to describe the build process and its dependencies. By default the XML file is named build.xml.

Java™ Application Development on Linux® – Free 599 Page eBook

Enterprise Java Virtualization:

Understanding the TCO Implications

InfoWorld’s Java IDE Comparison Strategy Guide:

Java Essential Training

Apache Jakarta Commons: Reusable Java™ Components

Enabling Rapid ROI: With Java™ – Based Business Intelligence Applications:

ANT Benefits

    Platform independent
Requires only a JDK 1.1 or later JVM.
Easy to use
Built-in tasks accomplish all typical build functions.
User contributed tasks cover most other needs.
Easy to extend
Create a new task by writing Java code.

ANT Capabilities

  • Compile java applications
  • Create javadoc documentation
  • Create jar, zip, tar, war files
  • Delete and copy files
  • Send mail
  • Validate XML files
  • Ant can get source code from version control
    • CVS, Subversion, Synergy, Perforce, ClearCase and many more
    • Ant can run unit tests
  • JUnit3, JUnit4, TestNG, or any arbitrary test application

Single Sign-On for Java and Web Applications

Bulletproof Java Code: A Practical Strategy for Developing Functional, Reliable, and Secure Java Code

Transforming a Generic Java IDE to Your Application Specific IDE:

The Java Virtual Appliance—No OS Required

BEA WebLogic® Operations Control: Application Virtualization for Enterprise Java

Enabling Rapid ROI: With Java™ – Based Business Intelligence Applications:

About these ads

6 comments on “Introduction to ANT

  1. Pingback: Checkstyle~A static code analysis tool | Researcher's Blog (Informative)

  2. Pingback: Sample Ant Build | Researcher's Blog (Informative)

  3. Pingback: Writing Custom Task in Ant | Researcher's Blog (Informative)

  4. Pingback: How to install Ant? | Researcher's Blog (Informative)

  5. Pingback: ANT Overview, Structure & Basics (Build File) | Researcher's Blog (Informative)

  6. Pingback: How ANT works? « Researcher's Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s