Modifier and Type | Method and Description |
---|---|
public void | |
public File | |
public String[] | Returns: the names of the directories which matched at least one of the include patterns and at least one of the exclude patterns.Returns the names of the directories which matched at least one of the include patterns and at least one of the exclude patterns. |
public String[] | Returns: the names of the files which matched at least one of the include patterns and at least one of the exclude patterns.Returns the names of the files which matched at least one of the include patterns and at least one of the exclude patterns. |
public String[] | Returns: the names of the directories which matched at least one of the include patterns and none of the exclude patterns.Returns the names of the directories which matched at least one of the include patterns and none of the exclude patterns. |
public String[] | Returns: the names of the files which matched at least one of the include patterns and none of the exclude patterns.Returns the names of the files which matched at least one of the include patterns and none of the exclude patterns. |
public String[] | Returns: the names of the directories which matched none of the include patterns.Returns the names of the directories which matched none of the include patterns. |
public String[] | Returns: the names of the files which matched none of the include patterns.Returns the names of the files which matched none of the include patterns. |
public void | scan()
Scans the base directory for files which match at least one include pattern and don't match any exclude patterns. |
public void | setBasedir(String
The base directory to scan.
Must not be basedir)null .Sets the base directory to be scanned. |
public void | setBasedir(File
The base directory for scanning.
Should not be basedir)null .Sets the base directory to be scanned. |
public void | setCaseSensitive(boolean
whether or not the file system should be
regarded as a case sensitive one isCaseSensitive)Sets whether or not the file system should be regarded as case sensitive. |
public void | setExcludes(String[]
A list of exclude patterns.
May be excludes)null , indicating that no files
should be excluded. If a non-null list is
given, all elements must be non-null .Sets the list of exclude patterns to use. |
public void | setIncludes(String[]
A list of include patterns.
May be includes)null , indicating that all files
should be included. If a non-null
list is given, all elements must be
non-null .Sets the list of include patterns to use. |
addDefaultExcludes | back to summary |
---|---|
public void addDefaultExcludes() Adds default exclusions to the current exclusions set. |
getBasedir | back to summary |
---|---|
public File getBasedir() Returns the base directory to be scanned. This is the directory which is scanned recursively.
|
getExcludedDirectories | back to summary |
---|---|
public String[] getExcludedDirectories() Returns the names of the directories which matched at least one of the include patterns and at least one of the exclude patterns. The names are relative to the base directory.
|
getExcludedFiles | back to summary |
---|---|
public String[] getExcludedFiles() Returns the names of the files which matched at least one of the include patterns and at least one of the exclude patterns. The names are relative to the base directory.
|
getIncludedDirectories | back to summary |
---|---|
public String[] getIncludedDirectories() Returns the names of the directories which matched at least one of the include patterns and none of the exclude patterns. The names are relative to the base directory.
|
getIncludedFiles | back to summary |
---|---|
public String[] getIncludedFiles() Returns the names of the files which matched at least one of the include patterns and none of the exclude patterns. The names are relative to the base directory.
|
getNotIncludedDirectories | back to summary |
---|---|
public String[] getNotIncludedDirectories() Returns the names of the directories which matched none of the include patterns. The names are relative to the base directory.
|
getNotIncludedFiles | back to summary |
---|---|
public String[] getNotIncludedFiles() Returns the names of the files which matched none of the include patterns. The names are relative to the base directory.
|
scan | back to summary |
---|---|
public void scan() throws IllegalStateException Scans the base directory for files which match at least one include pattern and don't match any exclude patterns.
|
setBasedir | back to summary |
---|---|
public void setBasedir(String basedir) Sets the base directory to be scanned. This is the directory which is
scanned recursively. All '/' and '\' characters should be replaced by
|
setBasedir | back to summary |
---|---|
public void setBasedir(File basedir) Sets the base directory to be scanned. This is the directory which is scanned recursively.
|
setCaseSensitive | back to summary |
---|---|
public void setCaseSensitive(boolean isCaseSensitive) Sets whether or not the file system should be regarded as case sensitive.
|
setExcludes | back to summary |
---|---|
public void setExcludes(String[] excludes) Sets the list of exclude patterns to use.
|
setIncludes | back to summary |
---|---|
public void setIncludes(String[] includes) Sets the list of include patterns to use.
|