|
|||||||||||
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 Archiver
setDefaultFileMode
in class AbstractArchiver
public void setDefaultDirectoryMode(int mode)
setDefaultDirectoryMode
in interface Archiver
setDefaultDirectoryMode
in class AbstractArchiver
public 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
ArchiverException
public boolean isSupportingForced()
Archiver
Archiver.setForced(boolean)
to true.
isSupportingForced
in interface Archiver
isSupportingForced
in class AbstractArchiver
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |