org.codehaus.plexus.archiver.ear
Class EarArchiver
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
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
- All Implemented Interfaces:
- Archiver, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, FilterEnabled, FinalizerEnabled, org.codehaus.plexus.logging.LogEnabled
- public class EarArchiver
- extends JarArchiver
Creates a EAR archive. Based on WAR task
Fields inherited from interface org.codehaus.plexus.archiver.Archiver |
ROLE |
Method Summary |
void |
addArchive(java.io.File fileName)
Adds archive. |
void |
addArchives(java.io.File directoryName,
java.lang.String[] includes,
java.lang.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 |
initZipOutputStream(ZipOutputStream zOut)
method for subclasses to override |
void |
setAppxml(java.io.File descr)
File to incorporate as application.xml. |
protected void |
zipFile(ArchiveEntry entry,
ZipOutputStream zOut,
java.lang.String vPath,
int mode)
Overridden from ZipArchiver class to deal with application.xml |
Methods inherited from class org.codehaus.plexus.archiver.jar.JarArchiver |
addConfiguredIndexJars, addConfiguredManifest, createEmptyZip, finalizeZipOutputStream, findJarName, grabFilesAndDirs, reset, setFilesetmanifest, setIndex, setManifest, setManifestEncoding, writeIndexLikeList, zipFile |
Methods inherited from class org.codehaus.plexus.archiver.zip.AbstractZipArchiver |
addParentDirs, addResources, createArchive, getArchiveFinalizers, getComment, getDirMode, getEncoding, getFileMode, getResourcesToAdd, getResourcesToUpdate, isCompress, isFilesonly, isInUpdateMode, isRoundUp, isSupportingForced, runArchiveFinalizers, setArchiveFilters, setArchiveFinalizers, setComment, setCompress, setDirMode, setEncoding, setFileMode, setFilesonly, setRoundUp, setUpdateMode, zipDir, zipFile |
Methods inherited from class org.codehaus.plexus.archiver.AbstractArchiver |
addArchivedFileSet, addArchivedFileSet, addArchivedFileSet, addArchivedFileSet, addDirectory, addDirectory, addDirectory, addDirectory, addFile, addFile, checkForced, contextualize, getDefaultDirectoryMode, getDefaultFileMode, getDestFile, getDirs, getFiles, getIncludeEmptyDirs, getLogger, isForced, isUptodate, setDefaultDirectoryMode, setDefaultFileMode, setDestFile, setForced, setIncludeEmptyDirs |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EarArchiver
public EarArchiver()
- Create an Ear.
setAppxml
public void setAppxml(java.io.File descr)
throws ArchiverException
- File to incorporate as application.xml.
- Throws:
ArchiverException
addArchive
public void addArchive(java.io.File fileName)
throws ArchiverException
- Adds archive.
- Throws:
ArchiverException
addArchives
public void addArchives(java.io.File directoryName,
java.lang.String[] includes,
java.lang.String[] excludes)
throws ArchiverException
- Adds archives.
- Throws:
ArchiverException
initZipOutputStream
protected void initZipOutputStream(ZipOutputStream zOut)
throws java.io.IOException,
ArchiverException
- Description copied from class:
AbstractZipArchiver
- method for subclasses to override
- Overrides:
initZipOutputStream
in class JarArchiver
- Throws:
java.io.IOException
ArchiverException
zipFile
protected void zipFile(ArchiveEntry entry,
ZipOutputStream zOut,
java.lang.String vPath,
int mode)
throws java.io.IOException,
ArchiverException
- Overridden from ZipArchiver class to deal with application.xml
- Throws:
java.io.IOException
ArchiverException
cleanUp
protected void cleanUp()
- Make sure we don't think we already have a application.xml next
time this task gets executed.
- Overrides:
cleanUp
in class JarArchiver
- See Also:
AbstractZipArchiver.cleanUp()
Copyright © 2001-2006 Codehaus. All Rights Reserved.