<ear>

Essentially a shortcut to a more complex <jar> task, the <ear> task enables you to create Enterprise Application archives (or EAR files). Thus giving you the ability to prepare a distribution for deployment using Ant.

Table 4.30 lists the attributes associated with the <ear> task.

Table 4.30. Table of <ear> Attributes
Attributes Description
Required
appxml The deployment descriptor (application.xml) to use.
destfile The name of the EAR file to create.
Optional
basedir The base directory the task will work from.
compress If true, the data will also be compressed. Defaults to true.
defaultexcludes If false, default excludes will not be used. Defaults to true.
encoding The character encoding to use for filenames inside the archive. Defaults ...

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.