|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AQFileSet
FileSet
A FileSet is a group of files. These files can be found in a directory tree starting
in a base directory and are matched by patterns. Hence, any operations performed on
the file set will be recursive by nature. The patterns are defined using the
following methods setExcludes(String)
, setIncludes(String)
.
Either base directory or file must be specified.
Method Summary | |
---|---|
String |
getBaseDir()
Retrieves the base directory for this fileset. |
int |
getSize()
To get the number of files in the file set. |
void |
setBaseDir(String dirName)
Sets the base directory for this fileset. |
void |
setExcludes(String excludes)
Appends excludes to the current list of exclude patterns. |
void |
setFile(String fileName)
Creates a single file fileset. |
void |
setIncludes(String includes)
Appends includes to the current list of include patterns. |
Method Detail |
---|
String getBaseDir()
void setBaseDir(String dirName) throws Exception
setFile(String)
was previously
called, calling this method would throw an exception. Also, all operations on this
file set will be recursive.
dirName
- The base directory; required.
Exception
- If the directory name is not a valid string or if setFile(String)
was previously called.void setFile(String fileName) throws Exception
setBaseDir(String)
was previously
called, calling this method would throw an exception.
fileName
- The file name; required.
Exception
- If the file name is not a valid string or if setBaseDir(String)
was previously called.void setExcludes(String excludes)
excludes
to the current list of exclude patterns.
Patterns may be separated by a comma or a space.
For Example:
To exclude all files, including ones found in any sub directories and subsequent sub directories
in the base directory of this fileset.
setExcludes("**/*");To exclude all files, with a dll extension, including ones found in any sub directories and subsequent sub directories in the base directory of this fileset.
setExclude("**/*.dll");
excludes
- The exclude pattern.void setIncludes(String includes)
includes
to the current list of include patterns.
Patterns may be separated by a comma or a space.
For Example:
To include all files, including ones found in any sub directories and subsequent sub directories
in the base directory of this fileset.
setIncludes("**/*");To include all files, with a txt extension, including ones found in any sub directories and subsequent sub directories in the base directory of this fileset.
setIncludes("**/*.txt");
includes
- The include pattern.int getSize()
|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |