public interface AQFileSet
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.
Synopsis:
fileset
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBaseDir()
Retrieves the base directory for this fileset.
|
int |
getSize()
To get the number of files in the file set.
|
void |
setBaseDir(java.lang.String dirName)
Sets the base directory for this fileset.
|
void |
setExcludes(java.lang.String excludes)
Appends
excludes to the current list of exclude patterns. |
void |
setFile(java.lang.String fileName)
Creates a single file fileset.
|
void |
setIncludes(java.lang.String includes)
Appends
includes to the current list of include patterns. |
java.lang.String getBaseDir()
void setBaseDir(java.lang.String dirName)
throws java.lang.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.java.lang.Exception - If the directory name is not a valid string or if setFile(String)
was previously called.void setFile(java.lang.String fileName)
throws java.lang.Exception
setBaseDir(String) was previously
called, calling this method would throw an exception.fileName - The file name; required.java.lang.Exception - If the file name is not a valid string or if setBaseDir(String)
was previously called.void setExcludes(java.lang.String excludes)
excludes to the current list of exclude patterns.
Patterns may be separated by a comma or a space.
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(java.lang.String includes)
includes to the current list of include patterns.
Patterns may be separated by a comma or a space.
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()
Copyright © 2019 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.