public class FileSetManager extends Object
Constructor and Description |
---|
FileSetManager()
Create a new manager instance with an empty messages.
|
FileSetManager(Log log)
Create a new manager instance with the supplied log instance.
|
FileSetManager(Log log,
boolean verbose)
Create a new manager instance with the supplied log instance and flag for whether to output verbose messages.
|
FileSetManager(org.codehaus.plexus.logging.Logger log)
Create a new manager instance with the supplied log instance.
|
FileSetManager(org.codehaus.plexus.logging.Logger log,
boolean verbose)
Create a new manager instance with the supplied log instance and flag for whether to output verbose messages.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(FileSet fileSet)
Delete the matching files and directories for the given file-set definition.
|
void |
delete(FileSet fileSet,
boolean throwsError)
Delete the matching files and directories for the given file-set definition.
|
String[] |
getExcludedDirectories(FileSet fileSet)
Get all the directory names which have been excluded by the rules in this fileset.
|
String[] |
getExcludedFiles(FileSet fileSet)
Get all the filenames which have been excluded by the rules in this fileset.
|
String[] |
getIncludedDirectories(FileSet fileSet)
Get all the directory names which have been included by the rules in this fileset.
|
String[] |
getIncludedFiles(FileSet fileSet)
Get all the filenames which have been included by the rules in this fileset.
|
Map<String,String> |
mapIncludedFiles(FileSet fileSet) |
public FileSetManager(Log log, boolean verbose)
log
- The mojo log instanceverbose
- Whether to output verbose messagespublic FileSetManager(Log log)
log
- The mojo log instancepublic FileSetManager(org.codehaus.plexus.logging.Logger log, boolean verbose)
log
- The mojo log instanceverbose
- Whether to output verbose messagespublic FileSetManager(org.codehaus.plexus.logging.Logger log)
log
- The mojo log instancepublic FileSetManager()
public Map<String,String> mapIncludedFiles(FileSet fileSet) throws MapperException
fileSet
- FileSet
MapperException
- if anygetIncludedFiles(FileSet)
public String[] getIncludedFiles(FileSet fileSet)
fileSet
- The fileset defining rules for inclusion/exclusion, and base directory.public String[] getIncludedDirectories(FileSet fileSet)
fileSet
- The fileset defining rules for inclusion/exclusion, and base directory.public String[] getExcludedFiles(FileSet fileSet)
fileSet
- The fileset defining rules for inclusion/exclusion, and base directory.public String[] getExcludedDirectories(FileSet fileSet)
fileSet
- The fileset defining rules for inclusion/exclusion, and base directory.public void delete(FileSet fileSet) throws IOException
fileSet
- The file-set matching rules, along with search base directoryIOException
- If a matching file cannot be deletedpublic void delete(FileSet 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.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.