|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.archiver.AbstractArchiver
org.codehaus.plexus.archiver.tar.TarArchiver
| Nested Class Summary | |
static class |
TarArchiver.TarCompressionMethod
Valid Modes for Compression attribute to Tar Task |
class |
TarArchiver.TarOptions
Valid Modes for Compression attribute to Tar Task |
| Field Summary |
| Fields inherited from class org.codehaus.plexus.archiver.AbstractArchiver |
DEFAULT_DIR_MODE, DEFAULT_FILE_MODE |
| Fields inherited from interface org.codehaus.plexus.archiver.Archiver |
ROLE |
| Constructor Summary | |
TarArchiver()
|
|
| Method Summary | |
void |
createArchive()
|
TarArchiver.TarOptions |
getOptions()
|
boolean |
isSupportingForced()
Returns, whether the archive supports uptodate checks. |
void |
setCompression(TarArchiver.TarCompressionMethod mode)
Set compression method. |
void |
setDefaultDirectoryMode(int mode)
Override AbstractArchiver.setDefaultDirectoryMode to update TarOptions. |
void |
setDefaultFileMode(int mode)
Override AbstractArchiver.setDefaultFileMode to update TarOptions. |
void |
setLongfile(TarLongFileMode mode)
Set how to handle long files, those with a path>100 chars. |
void |
setOptions(TarArchiver.TarOptions options)
Set all tar options |
protected void |
tarFile(ArchiveEntry entry,
TarOutputStream tOut,
java.lang.String vPath)
tar a file |
| 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, 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 |
| Constructor Detail |
public TarArchiver()
| Method Detail |
public TarArchiver.TarOptions getOptions()
public void setOptions(TarArchiver.TarOptions options)
options - optionspublic void setDefaultFileMode(int mode)
setDefaultFileMode in interface ArchiversetDefaultFileMode in class AbstractArchiverpublic void setDefaultDirectoryMode(int mode)
setDefaultDirectoryMode in interface ArchiversetDefaultDirectoryMode in class AbstractArchiverpublic void setLongfile(TarLongFileMode mode)
mode - the mode to handle long file names.public void setCompression(TarArchiver.TarCompressionMethod mode)
mode - the compression method.
public void createArchive()
throws ArchiverException,
java.io.IOException
ArchiverException
java.io.IOException
protected void tarFile(ArchiveEntry entry,
TarOutputStream tOut,
java.lang.String vPath)
throws ArchiverException,
java.io.IOException
entry - the file to tartOut - the output streamvPath - the path name of the file to tar
java.io.IOException - on error
ArchiverExceptionpublic boolean isSupportingForced()
ArchiverArchiver.setForced(boolean) to true.
isSupportingForced in interface ArchiverisSupportingForced in class AbstractArchiver
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||