Package org.apache.tools.ant.taskdefs
Class Ear
- All Implemented Interfaces:
Cloneable,SelectorContainer
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.Jar
Jar.FilesetManifestConfig, Jar.StrictModeNested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.Zip
Zip.ArchiveState, Zip.Duplicate, Zip.UnicodeExtraField, Zip.WhenEmpty, Zip.Zip64ModeAttribute -
Field Summary
Fields inherited from class org.apache.tools.ant.taskdefs.Zip
addedDirs, archiveType, doubleFilePass, duplicate, emptyBehavior, entries, skipWriting, zipFileFields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
filesetFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds zipfileset.protected voidcleanUp()Make sure we don't think we already have a application.xml next time this task gets executed.protected voidInitialize the output stream.voidFile to incorporate as application.xml.voidsetEarfile(File earFile) Deprecated.since 1.5.x.protected voidzipFile(File file, ZipOutputStream zOut, String vPath, int mode) Overridden from Zip class to deal with application.xmlMethods inherited from class org.apache.tools.ant.taskdefs.Jar
addConfiguredIndexJars, addConfiguredIndexJarsMapper, addConfiguredManifest, addConfiguredService, addMetainf, createEmptyZip, finalizeZipOutputStream, findJarName, getIndexJarsMapper, getResourcesToAdd, grabFilesAndDirs, reset, setFilesetmanifest, setFlattenAttributes, setIndex, setIndexMetaInf, setJarfile, setManifest, setManifestEncoding, setMergeClassPathAttributes, setStrict, setWhenempty, setWhenmanifestonly, writeIndexLikeList, zipFileMethods inherited from class org.apache.tools.ant.taskdefs.Zip
add, 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, zipFileMethods 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, XsetItemsMethods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation
-
Constructor Details
-
Ear
public Ear()Create an Ear task.
-
-
Method Details
-
setEarfile
Deprecated.since 1.5.x. Use setDestFile(destfile) instead.Set the destination file.- Parameters:
earFile- the destination file
-
setAppxml
File to incorporate as application.xml.- Parameters:
descr- the descriptor file
-
addArchives
Adds zipfileset.- Parameters:
fs- zipfileset to add
-
initZipOutputStream
Initialize the output stream.- Overrides:
initZipOutputStreamin classJar- Parameters:
zOut- the zip output stream.- Throws:
IOException- on I/O errorsBuildException- on other errors
-
zipFile
Overridden from Zip class to deal with application.xml- Overrides:
zipFilein classZip- 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.- Throws:
IOException- on error
-
cleanUp
protected void cleanUp()Make sure we don't think we already have a application.xml next time this task gets executed.
-