org.codehaus.plexus.archiver
Class ArchiveEntry
java.lang.Objectorg.codehaus.plexus.archiver.ArchiveEntry
public class ArchiveEntry
extends java.lang.Object
$Revision: 1502 $ $Date: 2005-09-01 13:20:41 -0400 (Thu, 01 Sep 2005) $
ArchiveEntry(String name, File original, int type, int mode)
|
DIRECTORY
public static final int DIRECTORY
FILE
public static final int FILE
ROLE
public static final String ROLE
ArchiveEntry
private ArchiveEntry(String name,
File original,
int type,
int mode)name - the filename as it will appear in the archiveoriginal - original filenametype - FILE or DIRECTORYmode - octal unix style permissions
createEntry
public static ArchiveEntry createEntry(String target,
File file,
int filePerm,
int dirPerm)
throws ArchiverException Creates the correct ArchiveEntry instance for either a FILE or a
DIRECTORY.
target - file - filePerm - dirPerm -
getFile
public File getFile()
- The original file that will be stored in the archive.
getMode
public int getMode()
- octal user/group/other unix like permissions.
getName
public String getName()
- the filename of this entry in the archive.
getType
public int getType()
TODO: support for SYMLINK?