org.apache.tools.ant.taskdefs
public class Ear extends Jar
Since: Ant 1.4
UNKNOWN: category="packaging"
Constructor Summary | |
---|---|
Ear()
Create an Ear task. |
Method Summary | |
---|---|
void | addArchives(ZipFileSet fs)
Adds zipfileset.
|
protected void | cleanUp()
Make sure we don't think we already have a application.xml next
time this task gets executed. |
protected void | initZipOutputStream(ZipOutputStream zOut)
Initialize the output stream. |
void | setAppxml(File descr)
File to incorporate as application.xml. |
void | setEarfile(File earFile)
Set the destination file. |
protected void | zipFile(File file, ZipOutputStream zOut, String vPath, int mode)
Overridden from Zip class to deal with application.xml |
Parameters: fs zipfileset to add
Parameters: zOut the zip output stream.
Throws: IOException on I/O errors BuildException on other errors
Parameters: descr the descriptor file
Deprecated: since 1.5.x. Use setDestFile(destfile) instead.
Set the destination file.Parameters: earFile the destination file
Parameters: file the file to add to the archive zOut the stream to write to vPath the name this entry shall have in the archive mode the Unix permissions to set.
Throws: IOException on error