org.codehaus.plexus.archiver
public interface Archiver
Version: $Revision: 3651 $ $Date: 2006-08-21 17:05:02 -0400 (Mon, 21 Aug 2006) $
Field Summary | |
---|---|
String | ROLE |
Method Summary | |
---|---|
void | addArchivedFileSet(File archiveFile) |
void | addArchivedFileSet(File archiveFile, String prefix) |
void | addArchivedFileSet(File archiveFile, String[] includes, String[] excludes) |
void | addArchivedFileSet(File archiveFile, String prefix, String[] includes, String[] excludes) |
void | addDirectory(File directory) |
void | addDirectory(File directory, String prefix) |
void | addDirectory(File directory, String[] includes, String[] excludes) |
void | addDirectory(File directory, String prefix, String[] includes, String[] excludes) |
void | addFile(File inputFile, String destFileName) |
void | addFile(File inputFile, String destFileName, int permissions) |
void | createArchive() |
int | getDefaultDirectoryMode() |
int | getDefaultFileMode() |
File | getDestFile() |
Map | getFiles() |
boolean | getIncludeEmptyDirs() |
boolean | isForced() Returns, whether recreating the archive is forced (default). |
boolean | isSupportingForced()
Returns, whether the archive supports uptodate checks. |
void | setDefaultDirectoryMode(int mode) |
void | setDefaultFileMode(int mode) |
void | setDestFile(File destFile) |
void | setForced(boolean forced) Sets, whether recreating the archive is forced (default). |
void | setIncludeEmptyDirs(boolean includeEmptyDirs) |
Returns, whether recreating the archive is forced (default). Setting this option to false means, that the archiver should compare the timestamps of included files with the timestamp of the target archive and rebuild the archive only, if the latter timestamp precedes the former timestamps. Checking for timestamps will typically offer a performance gain (in particular, if the following steps in a build can be suppressed, if an archive isn't recrated) on the cost that you get inaccurate results from time to time. In particular, removal of source files won't be detected.
An archiver doesn't necessarily support checks for uptodate. If so, setting this option to true will simply be ignored. The method isSupportingForced may be called to check whether an archiver does support uptodate checks.
Returns: True, if the target archive should always be created; false otherwise
See Also: Archiver isSupportingForced
Returns: True, if the archiver does support uptodate checks, false otherwise
Sets, whether recreating the archive is forced (default). Setting this option to false means, that the archiver should compare the timestamps of included files with the timestamp of the target archive and rebuild the archive only, if the latter timestamp precedes the former timestamps. Checking for timestamps will typically offer a performance gain (in particular, if the following steps in a build can be suppressed, if an archive isn't recrated) on the cost that you get inaccurate results from time to time. In particular, removal of source files won't be detected.
An archiver doesn't necessarily support checks for uptodate. If so, setting this option to true will simply be ignored. The method isSupportingForced may be called to check whether an archiver does support uptodate checks.
Parameters: forced True, if the target archive should always be created; false otherwise
See Also: isForced isSupportingForced