Home

 

Building applications with Ant

Traditionally, application builds are performed by using UNIX/Linux shell scripts or Windows batch files in combination with tools such as make. While these approaches are still valid, new challenges exist when developing Java applications, especially in a heterogeneous environment. Traditional tools are limited in that they are closely coupled to a particular operating system. With Ant, you can overcome these limitations and perform the build process in a standardized fashion regardless of the platform.

In this chapter, we describe the concepts and features of Ant in Rational Application Developer v7.5, and we demonstrate how to use the Ant tooling to build applications.

The chapter is organized into the following sections:

Introduction to Ant

Ant features in Application Developer

Building a simple Java application

Building a Java EE application

Running Ant outside of Application Developer

Using the Rational Application Developer Build Utility

The sample code for this chapter is in 7672code\ant.

ibm.com/redbooks