Package org.apache.tools.ant.taskdefs
Class Ear
- java.lang.Object
- 
- All Implemented Interfaces:
- java.lang.Cloneable,- SelectorContainer
 
 public class Ear extends Jar Creates a EAR archive. Based on WAR task- Since:
- Ant 1.4
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.JarJar.FilesetManifestConfig, Jar.StrictMode
 - 
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.ZipZip.ArchiveState, Zip.Duplicate, Zip.UnicodeExtraField, Zip.WhenEmpty, Zip.Zip64ModeAttribute
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.tools.ant.taskdefs.ZipaddedDirs, archiveType, doubleFilePass, duplicate, emptyBehavior, entries, skipWriting, zipFile
 - 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTaskfileset
 - 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description Ear()Create an Ear task.
 - 
Method SummaryModifier and Type Method Description voidaddArchives(ZipFileSet fs)Adds zipfileset.protected voidcleanUp()Make sure we don't think we already have a application.xml next time this task gets executed.protected voidinitZipOutputStream(ZipOutputStream zOut)Initialize the output stream.voidsetAppxml(java.io.File descr)File to incorporate as application.xml.voidsetEarfile(java.io.File earFile)Deprecated.since 1.5.x.protected voidzipFile(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.JaraddConfiguredIndexJars, addConfiguredManifest, addConfiguredService, addMetainf, createEmptyZip, finalizeZipOutputStream, findJarName, getResourcesToAdd, grabFilesAndDirs, reset, setFilesetmanifest, setFlattenAttributes, setIndex, setIndexMetaInf, setJarfile, setManifest, setManifestEncoding, setMergeClassPathAttributes, setStrict, setWhenempty, setWhenmanifestonly, writeIndexLikeList, zipFile
 - 
Methods inherited from class org.apache.tools.ant.taskdefs.Zipadd, addFileset, addParentDirs, addResources, addResources, addZipfileset, addZipGroupFileset, execute, executeMain, getComment, getCreateUnicodeExtraFields, getCurrentExtraFields, getDestFile, getEncoding, getFallBackToUTF8, getLevel, getModificationtime, getNonFileSetResourcesToAdd, getPreserve0Permissions, getResourcesToAdd, getUseLanguageEnodingFlag, getZip64Mode, grabNonFileSetResources, grabResources, hasUpdatedFile, isAddingNewFiles, isCompress, isEmpty, isFirstPass, isInUpdateMode, logWhenWriting, selectDirectoryResources, selectFileResources, selectResources, setBasedir, setComment, setCompress, setCreateUnicodeExtraFields, setCurrentExtraFields, setDestFile, setDuplicate, setEncoding, setFallBackToUTF8, setFile, setFilesonly, setKeepCompression, setLevel, setModificationtime, setPreserve0Permissions, setRoundUp, setUpdate, setUseLanguageEncodingFlag, setZip64Mode, setZipfile, zipDir, zipDir, zipDir, zipFile
 - 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTaskadd, 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.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 - 
Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation
 
- 
 
- 
- 
- 
Method Detail- 
setEarfile@Deprecated public void setEarfile(java.io.File earFile) Deprecated.since 1.5.x. Use setDestFile(destfile) instead.Set the destination file.- Parameters:
- earFile- the destination file
 
 - 
setAppxmlpublic void setAppxml(java.io.File descr) File to incorporate as application.xml.- Parameters:
- descr- the descriptor file
 
 - 
addArchivespublic void addArchives(ZipFileSet fs) Adds zipfileset.- Parameters:
- fs- zipfileset to add
 
 - 
initZipOutputStreamprotected void initZipOutputStream(ZipOutputStream zOut) throws java.io.IOException, BuildException Initialize the output stream.- Overrides:
- initZipOutputStreamin class- Jar
- Parameters:
- zOut- the zip output stream.
- Throws:
- java.io.IOException- on I/O errors
- BuildException- on other errors
 
 - 
zipFileprotected void zipFile(java.io.File file, ZipOutputStream zOut, java.lang.String vPath, int mode) throws java.io.IOExceptionOverridden from Zip class to deal with application.xml
 - 
cleanUpprotected void cleanUp() Make sure we don't think we already have a application.xml next time this task gets executed.- Overrides:
- cleanUpin class- Jar
- See Also:
- Zip.cleanUp()
 
 
- 
 
-