|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Archiver
Field Summary | |
---|---|
static java.lang.String |
ROLE
|
Method Summary | |
---|---|
void |
addArchivedFileSet(java.io.File archiveFile)
|
void |
addArchivedFileSet(java.io.File archiveFile,
java.lang.String prefix)
|
void |
addArchivedFileSet(java.io.File archiveFile,
java.lang.String[] includes,
java.lang.String[] excludes)
|
void |
addArchivedFileSet(java.io.File archiveFile,
java.lang.String prefix,
java.lang.String[] includes,
java.lang.String[] excludes)
|
void |
addDirectory(java.io.File directory)
|
void |
addDirectory(java.io.File directory,
java.lang.String prefix)
|
void |
addDirectory(java.io.File directory,
java.lang.String[] includes,
java.lang.String[] excludes)
|
void |
addDirectory(java.io.File directory,
java.lang.String prefix,
java.lang.String[] includes,
java.lang.String[] excludes)
|
void |
addFile(java.io.File inputFile,
java.lang.String destFileName)
|
void |
addFile(java.io.File inputFile,
java.lang.String destFileName,
int permissions)
|
void |
createArchive()
|
int |
getDefaultDirectoryMode()
|
int |
getDefaultFileMode()
|
java.io.File |
getDestFile()
|
java.util.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(java.io.File destFile)
|
void |
setDotFileDirectory(java.io.File dotFileDirectory)
|
void |
setForced(boolean forced)
Sets, whether recreating the archive is forced (default). |
void |
setIncludeEmptyDirs(boolean includeEmptyDirs)
|
Field Detail |
---|
static final java.lang.String ROLE
Method Detail |
---|
void createArchive() throws ArchiverException, java.io.IOException
ArchiverException
java.io.IOException
void addDirectory(java.io.File directory) throws ArchiverException
ArchiverException
void addDirectory(java.io.File directory, java.lang.String prefix) throws ArchiverException
ArchiverException
void addDirectory(java.io.File directory, java.lang.String[] includes, java.lang.String[] excludes) throws ArchiverException
ArchiverException
void addDirectory(java.io.File directory, java.lang.String prefix, java.lang.String[] includes, java.lang.String[] excludes) throws ArchiverException
ArchiverException
void addFile(java.io.File inputFile, java.lang.String destFileName) throws ArchiverException
ArchiverException
void addFile(java.io.File inputFile, java.lang.String destFileName, int permissions) throws ArchiverException
ArchiverException
void addArchivedFileSet(java.io.File archiveFile) throws ArchiverException
ArchiverException
void addArchivedFileSet(java.io.File archiveFile, java.lang.String prefix) throws ArchiverException
ArchiverException
void addArchivedFileSet(java.io.File archiveFile, java.lang.String[] includes, java.lang.String[] excludes) throws ArchiverException
ArchiverException
void addArchivedFileSet(java.io.File archiveFile, java.lang.String prefix, java.lang.String[] includes, java.lang.String[] excludes) throws ArchiverException
ArchiverException
java.io.File getDestFile()
void setDestFile(java.io.File destFile)
void setDefaultFileMode(int mode)
int getDefaultFileMode()
void setDefaultDirectoryMode(int mode)
int getDefaultDirectoryMode()
boolean getIncludeEmptyDirs()
void setIncludeEmptyDirs(boolean includeEmptyDirs)
void setDotFileDirectory(java.io.File dotFileDirectory)
java.util.Map getFiles()
boolean isForced()
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.
setForced(boolean)
,
isSupportingForced()
void setForced(boolean forced)
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.
forced
- True, if the target archive should always be created; false
otherwiseisForced()
,
isSupportingForced()
boolean isSupportingForced()
setForced(boolean)
to true.
setForced(boolean)
,
isForced()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |