public class Ear extends Jar
Jar.FilesetManifestConfig, Jar.StrictMode
Zip.ArchiveState, Zip.Duplicate, Zip.UnicodeExtraField, Zip.WhenEmpty, Zip.Zip64ModeAttribute
addedDirs, archiveType, doubleFilePass, duplicate, emptyBehavior, entries, skipWriting, zipFile
fileset
description, location, project
Constructor and Description |
---|
Ear()
Create an Ear task.
|
Modifier and Type | Method and Description |
---|---|
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(java.io.File descr)
File to incorporate as application.xml.
|
void |
setEarfile(java.io.File earFile)
Deprecated.
since 1.5.x.
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
|
addConfiguredIndexJars, addConfiguredManifest, addConfiguredService, addMetainf, createEmptyZip, finalizeZipOutputStream, findJarName, getResourcesToAdd, grabFilesAndDirs, reset, setFilesetmanifest, setFlattenAttributes, setIndex, setIndexMetaInf, setJarfile, setManifest, setManifestEncoding, setMergeClassPathAttributes, setStrict, setWhenempty, setWhenmanifestonly, writeIndexLikeList, zipFile
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, zipFile
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
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation
public void setEarfile(java.io.File earFile)
earFile
- the destination filepublic void setAppxml(java.io.File descr)
descr
- the descriptor filepublic void addArchives(ZipFileSet fs)
fs
- zipfileset to addprotected void initZipOutputStream(ZipOutputStream zOut) throws java.io.IOException, BuildException
initZipOutputStream
in class Jar
zOut
- the zip output stream.java.io.IOException
- on I/O errorsBuildException
- on other errorsprotected void zipFile(java.io.File file, ZipOutputStream zOut, java.lang.String vPath, int mode) throws java.io.IOException
protected void cleanUp()
cleanUp
in class Jar
Zip.cleanUp()