Package org.codehaus.plexus.archiver.ear
Class EarArchiver
java.lang.Object
org.codehaus.plexus.archiver.AbstractArchiver
org.codehaus.plexus.archiver.zip.AbstractZipArchiver
org.codehaus.plexus.archiver.zip.ZipArchiver
org.codehaus.plexus.archiver.jar.JarArchiver
org.codehaus.plexus.archiver.ear.EarArchiver
-
Nested Class Summary
Nested classes/interfaces inherited from class org.codehaus.plexus.archiver.jar.JarArchiver
JarArchiver.FilesetManifestConfig
-
Field Summary
Fields inherited from class org.codehaus.plexus.archiver.zip.AbstractZipArchiver
addedDirs, addingNewFiles, archiveType, doubleFilePass, duplicate, entries, skipWriting, zipArchiveOutputStream
Fields inherited from interface org.codehaus.plexus.archiver.Archiver
DEFAULT_DIR_MODE, DEFAULT_FILE_MODE, DEFAULT_SYMLILNK_MODE, DUPLICATES_ADD, DUPLICATES_FAIL, DUPLICATES_PRESERVE, DUPLICATES_SKIP, DUPLICATES_VALID_BEHAVIORS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addArchive
(File fileName) Adds archive.void
addArchives
(File directoryName, String[] includes, String[] excludes) Adds archives.protected void
cleanUp()
Make sure we don't think we already have a application.xml next time this task gets executed.protected void
method for subclasses to overridevoid
File to incorporate as application.xml.protected void
zipFile
(ArchiveEntry entry, ConcurrentJarCreator zOut, String vPath, int mode) Overridden from ZipArchiver class to deal with application.xmlMethods inherited from class org.codehaus.plexus.archiver.jar.JarArchiver
addConfiguredIndexJars, addConfiguredManifest, createEmptyZip, createManifest, finalizeZipOutputStream, findJarName, hasVirtualFiles, reset, setFilesetmanifest, setIndex, setManifest, setManifestEncoding, setMinimalDefaultManifest, setZipEntryTime, writeIndexLikeList, zipFile
Methods inherited from class org.codehaus.plexus.archiver.zip.AbstractZipArchiver
addResources, close, execute, getArchiveType, getComment, getEncoding, isCompress, isFilesonly, isInUpdateMode, isRecompressAddedZips, isSupportingForced, normalizeLastModifiedTime, revert, setComment, setCompress, setEncoding, setFilesonly, setRecompressAddedZips, setUpdateMode, zipDir, zipFile
Methods inherited from class org.codehaus.plexus.archiver.AbstractArchiver
addArchivedFileSet, addArchivedFileSet, addArchivedFileSet, addArchivedFileSet, addArchivedFileSet, addArchivedFileSet, addArchiveFinalizer, addDirectory, addDirectory, addDirectory, addDirectory, addFile, addFile, addFileSet, addResource, addResources, addSymlink, addSymlink, asArchiveEntry, asResourceCollection, checkForced, configureReproducible, configureReproducibleBuild, createArchive, getDefaultDirectoryMode, getDefaultFileMode, getDestFile, getDirectoryMode, getDuplicateBehavior, getFileMode, getFilenameComparator, getFiles, getIncludeEmptyDirs, getLastModifiedDate, getLastModifiedTime, getLogger, getOverrideDirectoryMode, getOverrideFileMode, getOverrideGid, getOverrideGroupName, getOverrideUid, getOverrideUserName, getRawDefaultFileMode, getResources, getUmask, isForced, isIgnorePermissions, isUptodate, isUseJvmChmod, postCreateArchive, runArchiveFinalizers, setArchiveFinalizers, setDefaultDirectoryMode, setDefaultFileMode, setDestFile, setDirectoryMode, setDotFileDirectory, setDuplicateBehavior, setFileMode, setFilenameComparator, setForced, setIgnorePermissions, setIncludeEmptyDirs, setLastModifiedDate, setLastModifiedTime, setOverrideGid, setOverrideGroupName, setOverrideUid, setOverrideUserName, setUmask, setUseJvmChmod, validate
-
Constructor Details
-
EarArchiver
public EarArchiver()Create an Ear.
-
-
Method Details
-
setAppxml
File to incorporate as application.xml.- Throws:
ArchiverException
-
addArchive
Adds archive.- Throws:
ArchiverException
-
addArchives
public void addArchives(File directoryName, String[] includes, String[] excludes) throws ArchiverException Adds archives.- Throws:
ArchiverException
-
initZipOutputStream
Description copied from class:AbstractZipArchiver
method for subclasses to override- Overrides:
initZipOutputStream
in classJarArchiver
- Parameters:
zOut
- The output stream- Throws:
ArchiverException
IOException
-
zipFile
protected void zipFile(ArchiveEntry entry, ConcurrentJarCreator zOut, String vPath, int mode) throws IOException, ArchiverException Overridden from ZipArchiver class to deal with application.xml- Throws:
IOException
ArchiverException
-
cleanUp
Make sure we don't think we already have a application.xml next time this task gets executed.- Overrides:
cleanUp
in classJarArchiver
- Throws:
IOException
- See Also:
-