Hi, Not sure if you guys are taking new 1.x tasks at the moment, or if this one just got overlooked (or I missed the CVS commit email) but here it is again.
Bye, Les > -----Original Message----- > From: Les Hughes [mailto:[EMAIL PROTECTED] > Sent: 07 March 2001 09:45 > To: [EMAIL PROTECTED] Apache. Org (E-mail) > Subject: Ear task > > > Hi, > > Not really anything wonderful, I've hacked together an Ear > task out of the > War task, basically because I'm too lazy to keep using > zipfilesets in Jar > ;-) > > Enjoy, > Les > > >
Ear.java
Description: Binary data
Ear
Description
An extension of the Jar task with special treatment for files that should end up in an Enterprise Application archive.
(The Ear task is a shortcut for specifying the particular layout of a EAR file. The same thing can be accomplished by using the prefix and fullpath attributes of zipfilesets in a Zip or Jar task.)
The extended zipfileset element from the zip task (with attributes prefix, fullpath, and src) is available in the War task.
Parameters
| Attribute | Description | Required |
| earfile | the ear-file to create. | Yes |
| appxml | The deployment descriptor to use (META-INF/application.xml). | Yes |
| basedir | the directory from which to jar the files. | No |
| compress | Not only store data but also compress them, defaults to true | No |
| includes | comma separated list of patterns of files that must be included. All files are included when omitted. | No |
| includesfile | the name of a file. Each line of this file is taken to be an include pattern | No |
| excludes | comma separated list of patterns of files that must be excluded. No files (except default excludes) are excluded when omitted. | No |
| excludesfile | the name of a file. Each line of this file is taken to be an exclude pattern | No |
| defaultexcludes | indicates whether default excludes should be used or not ("yes"/"no"). Default excludes are used when omitted. | No |
| manifest | the manifest file to use. | No |
| whenempty | Behavior to use if no files match. | No |
Example
<ear earfile="${build.dir}/myapp.ear" appxml="${src.dir}/metadata/application.xml">
<fileset dir="${build.dir}" includes="*.jar,*.war"/>
</ear>
Copyright © 2000,2001 Apache Software Foundation. All rights Reserved.
