<war>

The <war> task enables you to assemble a Web Archive (WAR) file, which is a file format used for deploying Web applications. The <war> task, which is effectively a shortcut to what can be produced with the <zip> and <jar> tasks using zipfilesets, assists in building up the set of files needed to complete the Web application in the required directory structure.

The list of <war> attributes is provided in Table 4.86.

Table 4.86. Table of <war> Attributes
Attributes Description
Required
destfile The name to be given to the WAR file.
webxml The file to be used for the deployment descriptor (that is, the source file for WEB-INF/web.xml).
Optional
basedir The name of the directory from which the files to jar are located.
compress If true, files ...

Get Ant Developer’s Handbook 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.