public class FileTree
extends java.lang.Object
| Constructor and Description |
|---|
FileTree() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExcludes(java.util.List<java.lang.String> excludes)
Add an Ant-style glob to the exclude patterns.
|
void |
addExcludes(java.lang.String... excludes)
Add an Ant-style glob to the exclude patterns.
|
void |
addFile(java.io.File file)
Can be used to add specific files to the return value of
getFiles(File, String...) and getFiles(File, List). |
void |
addIncludes(java.util.List<java.lang.String> includes)
Add an Ant-style glob to the include patterns.
|
void |
addIncludes(java.lang.String... includes)
Add an Ant-style glob to the include patterns.
|
java.util.List<java.io.File> |
getFiles(java.io.File baseDir,
java.util.List<java.lang.String> defaultIncludes)
Return a list of files using the specified baseDir and the configured
include and exclude Ant-style glob expressions.
|
java.util.List<java.io.File> |
getFiles(java.io.File baseDir,
java.lang.String... defaultIncludes)
Return a list of files using the specified baseDir and the configured
include and exclude Ant-style glob expressions.
|
public void addFile(java.io.File file)
getFiles(File, String...) and getFiles(File, List).file - A file to include in the return value of
getFiles(File, String...) and
getFiles(File, List).public void addIncludes(java.util.List<java.lang.String> includes)
includes - Add an Ant-style globpublic void addIncludes(java.lang.String... includes)
includes - Add an Ant-style globpublic void addExcludes(java.lang.String... excludes)
excludes - Add an Ant-style globpublic void addExcludes(java.util.List<java.lang.String> excludes)
excludes - Add an Ant-style globpublic java.util.List<java.io.File> getFiles(java.io.File baseDir,
java.lang.String... defaultIncludes)
throws java.io.IOException
baseDir - The base directory for locating files.defaultIncludes - The default include patterns to use if no include
patterns were configured.java.io.IOException - If an exception occurs.public java.util.List<java.io.File> getFiles(java.io.File baseDir,
java.util.List<java.lang.String> defaultIncludes)
throws java.io.IOException
baseDir - The base directory for locating files.defaultIncludes - The default include patterns to use if no include
patterns were configured.java.io.IOException - If an exception occurs.Copyright (c) OSGi Alliance (2014, 2020). All Rights Reserved.