|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.mojo.truezip.internal.TrueZipFileSetManager
public class TrueZipFileSetManager
Provides operations for use with FileSet instances, such as retrieving the included/excluded files, deleting all matching entries, etc. This is a fork of maven's shared FileSetManager with the following changes - Use TrueZipDirectoryScanner instead DirectoryScanner - use java.io.File in isSymLink(); Note: symbolic support is unsupported
| Constructor Summary | |
|---|---|
TrueZipFileSetManager()
Create a new manager instance with the supplied log instance and flag for whether to output verbose messages. |
|
| Method Summary | |
|---|---|
void |
delete(TrueZipFileSet fileSet)
Delete the matching files and directories for the given file-set definition. |
void |
delete(TrueZipFileSet fileSet,
boolean throwsError)
Delete the matching files and directories for the given file-set definition. |
String[] |
getExcludedDirectories(TrueZipFileSet fileSet)
Get all the directory names which have been excluded by the rules in this fileset. |
String[] |
getExcludedFiles(TrueZipFileSet fileSet)
Get all the filenames which have been excluded by the rules in this fileset. |
String[] |
getIncludedDirectories(TrueZipFileSet fileSet)
Get all the directory names which have been included by the rules in this fileset. |
String[] |
getIncludedFiles(TrueZipFileSet fileSet)
Get all the filenames which have been included by the rules in this fileset. |
Map |
mapIncludedFiles(TrueZipFileSet fileSet)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrueZipFileSetManager()
log - The mojo log instanceverbose - Whether to output verbose messages| Method Detail |
|---|
public Map mapIncludedFiles(TrueZipFileSet fileSet)
throws org.apache.maven.shared.model.fileset.mappers.MapperException
fileSet -
org.apache.maven.shared.model.fileset.mappers.MapperException - if any#getIncludedFiles(FileSet)public String[] getIncludedFiles(TrueZipFileSet fileSet)
fileSet - The fileset defining rules for inclusion/exclusion, and base directory.
public String[] getIncludedDirectories(TrueZipFileSet fileSet)
fileSet - The fileset defining rules for inclusion/exclusion, and base directory.
public String[] getExcludedFiles(TrueZipFileSet fileSet)
fileSet - The fileset defining rules for inclusion/exclusion, and base directory.
public String[] getExcludedDirectories(TrueZipFileSet fileSet)
fileSet - The fileset defining rules for inclusion/exclusion, and base directory.
public void delete(TrueZipFileSet fileSet)
throws IOException
fileSet - The file-set matching rules, along with search base directory
IOException - If a matching file cannot be deleted
public void delete(TrueZipFileSet fileSet,
boolean throwsError)
throws IOException
fileSet - The file-set matching rules, along with search base directory.throwsError - Throw IOException when errors have occurred by deleting files or directories.
IOException - If a matching file cannot be deleted and throwsError=true, otherwise
print warning messages.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||