How do I build a war file with Ant?
Author: Deron Eriksson
Description: This tutorial describes how to use Ant to build a war (web archive) file.
Tutorial created using: Windows XP || JDK 1.5.0_09 || Eclipse Web Tools Platform 1.5.1


Page: < 1 2 3

(Continued from page 2)

If we run the warW target, the results of the execution are shown in the console.

Execution Results

After running the war target, in our Navigator view we can see that the build directory was created, and the tomcat-demo.war was created in the build directory.

tomcat-demo.war was created

As you can see, AntSW makes it quite easy to build war files. Ant has many other capabilities, some of which are covered in other tutorials.

Page: < 1 2 3