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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access