org.apache.tools.ant.taskdefs
Class Ear
java.lang.Object
|
+--org.apache.tools.ant.ProjectComponent
|
+--org.apache.tools.ant.Task
|
+--org.apache.tools.ant.taskdefs.MatchingTask
|
+--org.apache.tools.ant.taskdefs.Zip
|
+--org.apache.tools.ant.taskdefs.Jar
|
+--org.apache.tools.ant.taskdefs.Ear
- All Implemented Interfaces:
- SelectorContainer
- public class Ear
- extends Jar
Creates a EAR archive. Based on WAR task
- Since:
- Ant 1.4
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)
method for subclasses to override |
void |
setAppxml(java.io.File descr)
File to incorporate as application.xml. |
void |
setEarfile(java.io.File earFile)
Deprecated. Use setDestFile(destfile) instead |
protected void |
zipFile(java.io.File file,
ZipOutputStream zOut,
java.lang.String vPath,
int mode)
Overridden from Zip class to deal with application.xml |
Methods inherited from class org.apache.tools.ant.taskdefs.Jar |
addConfiguredIndexJars, addConfiguredManifest, addMetainf, createEmptyZip, finalizeZipOutputStream, findJarName, getResourcesToAdd, grabFilesAndDirs, reset, setFilesetmanifest, setIndex, setJarfile, setManifest, setManifestEncoding, setWhenempty, writeIndexLikeList, zipFile |
Methods inherited from class org.apache.tools.ant.taskdefs.Zip |
addFileset, addParentDirs, addResources, addZipfileset, addZipGroupFileset, execute, executeMain, getDestFile, getEncoding, grabResources, isAddingNewFiles, isCompress, isEmpty, isInUpdateMode, selectFileResources, setBasedir, setCompress, setDestFile, setDuplicate, setEncoding, setFile, setFilesonly, setKeepCompression, setRoundUp, setUpdate, setZipfile, zipDir |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Ear
public Ear()
- Create an Ear task.
setEarfile
public void setEarfile(java.io.File earFile)
- Deprecated. Use setDestFile(destfile) instead
setAppxml
public void setAppxml(java.io.File descr)
- File to incorporate as application.xml.
addArchives
public void addArchives(ZipFileSet fs)
- Adds zipfileset.
- Parameters:
fs
- zipfileset to add
initZipOutputStream
protected void initZipOutputStream(ZipOutputStream zOut)
throws java.io.IOException,
BuildException
- Description copied from class:
Zip
- method for subclasses to override
- Overrides:
initZipOutputStream
in class Jar
java.io.IOException
BuildException
zipFile
protected void zipFile(java.io.File file,
ZipOutputStream zOut,
java.lang.String vPath,
int mode)
throws java.io.IOException
- Overridden from Zip class to deal with application.xml
- Overrides:
zipFile
in class Zip
- Parameters:
file
- the file to add to the archivezOut
- the stream to write tovPath
- the name this entry shall have in the archivemode
- the Unix permissions to set.
java.io.IOException
cleanUp
protected void cleanUp()
- Make sure we don't think we already have a application.xml next
time this task gets executed.
- Overrides:
cleanUp
in class Jar
- See Also:
Zip.cleanUp()
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.