public class Fileset extends Object
Constructor and Description |
---|
Fileset()
Default constructor.
|
Fileset(File basedir,
Collection<String> includes,
Collection<String> excludes)
All-Args constructor.
|
Modifier and Type | Method and Description |
---|---|
File |
getBasedir()
Returns the base directory of the fileset.
|
Collection<String> |
getExcludes()
Returns the exclude patterns for the fileset.
|
List<File> |
getFiles()
Returns the names of all files matching this fileset.
|
Collection<String> |
getIncludes()
Returns the include patterns for the fileset.
|
void |
setBasedir(File basedir)
Sets the base directory of the fileset.
|
void |
setExcludes(Collection<String> excludes)
Sets the exclude patterns for the fileset.
|
void |
setIncludes(Collection<String> includes)
Sets the include patterns for the fileset.
|
String |
toString() |
public Fileset()
public Fileset(File basedir, Collection<String> includes, Collection<String> excludes)
basedir
- the basedir, or null to use the current basedir.includes
- The patterns for the files to include.
If null or empty, all Files are included.excludes
- The patterns for the files to exclude.
If null or empty, no Files are excluded.public File getBasedir()
public void setBasedir(File basedir)
basedir
- the base directory, or null.public Collection<String> getIncludes()
public void setIncludes(Collection<String> includes)
includes
- the include patterns, or null if all files
should be included.public Collection<String> getExcludes()
public void setExcludes(Collection<String> excludes)
excludes
- the exclude patterns, or null if all files
should be excluded.public List<File> getFiles() throws IOException
IOException
- if an error occurs reading the file names.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.