Building Your Struts Applications with Ant
Although there are several different mechanisms to compile and deploy your Struts application, by far the most popular and most flexible is the Ant build tool.[11] This section discusses how to use Ant to perform the necessary tasks for compiling and packaging your application.
What Is Ant?
Ant is a platform-independent build tool that can be configured to compile your Java source code files, build your deployment JAR and WAR files, unit-test your code, and create your project’s JavaDoc documentation. It also has many other uses and can be expanded to perform new tasks of your own creation.
Ant is similar to the Unix make
utility (also known as gmake
in Linux and
nmake
in DOS/Windows).
make
utilities have been used for
generations to manage projects for languages such as C and C++, but
these utilities are platform-dependent because the rules they use are
typically shell commands executed by the host operating system.
Unlike make,
Ant’s rules (or tasks, in Ant terminology) are Java
classes and can be run on any platform with a supported JVM.
Installing and Configuring Ant
You can download ...
Get Programming Jakarta Struts now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.