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