org.apache.maven.shared.model.fileset.util
public class FileSetManager extends java.lang.Object
Constructor and Description |
---|
FileSetManager()
Create a new manager instance with an empty messages.
|
FileSetManager(org.apache.maven.plugin.logging.Log log)
Create a new manager instance with the supplied log instance.
|
FileSetManager(org.apache.maven.plugin.logging.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(org.apache.maven.shared.model.fileset.FileSet fileSet)
Delete the matching files and directories for the given file-set definition.
|
void |
delete(org.apache.maven.shared.model.fileset.FileSet fileSet,
boolean throwsError)
Delete the matching files and directories for the given file-set definition.
|
java.lang.String[] |
getExcludedDirectories(org.apache.maven.shared.model.fileset.FileSet fileSet)
Get all the directory names which have been excluded by the rules in this fileset.
|
java.lang.String[] |
getExcludedFiles(org.apache.maven.shared.model.fileset.FileSet fileSet)
Get all the filenames which have been excluded by the rules in this fileset.
|
java.lang.String[] |
getIncludedDirectories(org.apache.maven.shared.model.fileset.FileSet fileSet)
Get all the directory names which have been included by the rules in this fileset.
|
java.lang.String[] |
getIncludedFiles(org.apache.maven.shared.model.fileset.FileSet fileSet)
Get all the filenames which have been included by the rules in this fileset.
|
java.util.Map |
mapIncludedFiles(org.apache.maven.shared.model.fileset.FileSet fileSet) |
public FileSetManager(org.apache.maven.plugin.logging.Log log, boolean verbose)
log
- The mojo log instanceverbose
- Whether to output verbose messagespublic FileSetManager(org.apache.maven.plugin.logging.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 java.util.Map mapIncludedFiles(org.apache.maven.shared.model.fileset.FileSet fileSet) throws MapperException
fileSet
- MapperException
- if anygetIncludedFiles(FileSet)
public java.lang.String[] getIncludedFiles(org.apache.maven.shared.model.fileset.FileSet fileSet)
fileSet
- The fileset defining rules for inclusion/exclusion, and base directory.public java.lang.String[] getIncludedDirectories(org.apache.maven.shared.model.fileset.FileSet fileSet)
fileSet
- The fileset defining rules for inclusion/exclusion, and base directory.public java.lang.String[] getExcludedFiles(org.apache.maven.shared.model.fileset.FileSet fileSet)
fileSet
- The fileset defining rules for inclusion/exclusion, and base directory.public java.lang.String[] getExcludedDirectories(org.apache.maven.shared.model.fileset.FileSet fileSet)
fileSet
- The fileset defining rules for inclusion/exclusion, and base directory.public void delete(org.apache.maven.shared.model.fileset.FileSet fileSet) throws java.io.IOException
fileSet
- The file-set matching rules, along with search base directoryjava.io.IOException
- If a matching file cannot be deletedpublic void delete(org.apache.maven.shared.model.fileset.FileSet fileSet, boolean throwsError) throws java.io.IOException
fileSet
- The file-set matching rules, along with search base directory.throwsError
- Throw IOException when errors have occurred by deleting files or directories.java.io.IOException
- If a matching file cannot be deleted and throwsError=true
, otherwise
print warning messages.Copyright © 2014. All Rights Reserved.