public class FileSet extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
directory
Sets the absolute or relative location from the module's directory.
|
private List<String> |
excludes
Set of excludes excludes.
|
private List<String> |
includes
Set of includes.
|
private String |
outputDirectory
Sets the output directory relative to the root of the root directory of the archive.
|
private boolean |
useDefaultExcludes
Whether standard exclusion patterns, such as those matching CVS and Subversion
metadata files, should be used when calculating the files affected by this set.
|
| Constructor and Description |
|---|
FileSet() |
| Modifier and Type | Method and Description |
|---|---|
FileSet |
addExclude(String pattern)
Adds an exclusion
|
FileSet |
addInclude(String pattern)
Adds an inclusion
|
String |
getDirectory()
Get sets the absolute or relative location from the module's directory.
|
List<String> |
getExcludes() |
List<String> |
getIncludes() |
String |
getOutputDirectory()
Get sets the output directory relative to the root of the root directory of the archive.
|
boolean |
isUseDefaultExcludes()
Get whether standard exclusion patterns, such as those matching CVS and Subversion
metadata files, should be used when calculating the files affected by this set.
|
FileSet |
removeExclude(String pattern)
Removes an exclusion pattern.
|
FileSet |
removeInclude(String pattern)
Removes an inclusion pattern.
|
FileSet |
setDirectory(String directory)
Set sets the absolute or relative location from the module's directory.
|
FileSet |
setExcludes(List<String> excludes)
Set when <exclude> subelements are present, they define a set of
files and directory to exclude.
|
FileSet |
setIncludes(List<String> includes)
Set when <include> subelements are present, they define a set of
files and directory to include.
|
FileSet |
setOutputDirectory(String outputDirectory)
Set sets the output directory relative to the root of the root directory of the archive.
|
FileSet |
setUseDefaultExcludes(boolean useDefaultExcludes)
Set whether standard exclusion patterns, such as those matching CVS and Subversion
metadata files, should be used when calculating the files affected by this set.
|
private boolean useDefaultExcludes
private String outputDirectory
private String directory
public FileSet addExclude(String pattern)
pattern - the exclusionpublic FileSet addInclude(String pattern)
pattern - the patternpublic String getDirectory()
public List<String> getExcludes()
public List<String> getIncludes()
public String getOutputDirectory()
public boolean isUseDefaultExcludes()
public FileSet removeExclude(String pattern)
pattern - the patternpublic FileSet removeInclude(String pattern)
pattern - the patternpublic FileSet setDirectory(String directory)
directory - the directorypublic FileSet setExcludes(List<String> excludes)
excludes - the set of exclusionspublic FileSet setIncludes(List<String> includes)
includes - the set of inclusionspublic FileSet setOutputDirectory(String outputDirectory)
outputDirectory - the output directorypublic FileSet setUseDefaultExcludes(boolean useDefaultExcludes)
useDefaultExcludes - whether or not the default excluded should be added to the set of exclusionsCopyright © 2018. All rights reserved.