org.codehaus.plexus.archiver.tar
Class TarArchiver
- Archiver
$Revision: 2436 $ $Date: 2005-09-01 13:20:41 -0400 (Thu, 01 Sep 2005) $
addDirectory , addDirectory , addDirectory , addDirectory , addFile , addFile , getDefaultDirectoryMode , getDefaultFileMode , getDestFile , getDirs , getFiles , getIncludeEmptyDirs , getLogger , setDefaultDirectoryMode , setDefaultFileMode , setDestFile , setIncludeEmptyDirs |
longWarningGiven
private boolean longWarningGiven
Indicates whether the user has been warned about long files already.
containsFile
private static boolean containsFile(File file,
Collection list)
setCompression
public void setCompression(TarCompressionMethod mode)
Set compression method.
Allowable values are
- none - no compression
- gzip - Gzip compression
- bzip2 - Bzip2 compression
mode
- the compression method.
setLongfile
public void setLongfile(TarLongFileMode mode)
Set how to handle long files, those with a path>100 chars.
Optional, default=warn.
Allowable values are
- truncate - paths are truncated to the maximum length
- fail - paths greater than the maximum cause a build exception
- warn - paths greater than the maximum cause a warning and GNU is used
- gnu - GNU extensions are used for any paths greater than the maximum.
- omit - paths greater than the maximum are omitted from the archive
mode
- the mode to handle long file names.
tarFile
protected void tarFile(ArchiveEntry entry,
TarOutputStream tOut,
String vPath)
throws ArchiverException,
IOException
tar a file
entry
- the file to tartOut
- the output streamvPath
- the path name of the file to tar