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
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(File descr)
File to incorporate as application.xml.
|
protected void |
zipFile(File file,
ZipOutputStream zOut,
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, setManifest, setManifestEncoding, setMergeClassPathAttributes, setStrict, setWhenempty, setWhenmanifestonly, writeIndexLikeList, zipFile
add, addFileset, addParentDirs, addResources, addResources, addZipfileset, addZipGroupFileset, execute, executeMain, getComment, getCreateUnicodeExtraFields, getCurrentExtraFields, getDestFile, getEncoding, getFallBackToUTF8, getLevel, 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, setFilesonly, setKeepCompression, setLevel, setPreserve0Permissions, setRoundUp, setUpdate, setUseLanguageEncodingFlag, setZip64Mode, 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 addArchives(ZipFileSet fs)
fs
- zipfileset to addprotected void cleanUp()
cleanUp
in class Jar
Zip.cleanUp()
protected void initZipOutputStream(ZipOutputStream zOut) throws IOException, BuildException
initZipOutputStream
in class Jar
zOut
- the zip output stream.IOException
- on I/O errorsBuildException
- on other errorspublic void setAppxml(File descr)
descr
- the descriptor fileprotected void zipFile(File file, ZipOutputStream zOut, String vPath, int mode) throws IOException
zipFile
in class Zip
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.IOException
- on error