Class FileTree
java.lang.Object
aQute.bnd.maven.lib.configuration.FileTree
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExcludes(String... excludes) Add an Ant-style glob to the exclude patterns.voidaddExcludes(List<String> excludes) Add an Ant-style glob to the exclude patterns.voidCan be used to add specific files to the return value ofgetFiles(File, String...)andgetFiles(File, List).voidaddIncludes(String... includes) Add an Ant-style glob to the include patterns.voidaddIncludes(List<String> includes) Add an Ant-style glob to the include patterns.Return a list of files using the specified baseDir and the configured include and exclude Ant-style glob expressions.Return a list of files using the specified baseDir and the configured include and exclude Ant-style glob expressions.voidsetExclude(String exclude) Add an Ant-style glob to the exclude patterns.voidsetInclude(String include) Add an Ant-style glob to the include patterns.toString()
-
Field Details
-
fileTree
private final aQute.lib.io.FileTree fileTree
-
-
Constructor Details
-
FileTree
public FileTree()
-
-
Method Details
-
addFile
Can be used to add specific files to the return value ofgetFiles(File, String...)andgetFiles(File, List).- Parameters:
file- A file to include in the return value ofgetFiles(File, String...)andgetFiles(File, List).
-
addIncludes
-
addIncludes
Add an Ant-style glob to the include patterns.- Parameters:
includes- Add an Ant-style glob
-
addExcludes
Add an Ant-style glob to the exclude patterns.- Parameters:
excludes- Add an Ant-style glob
-
addExcludes
-
getFiles
Return a list of files using the specified baseDir and the configured include and exclude Ant-style glob expressions.- Parameters:
baseDir- The base directory for locating files.defaultIncludes- The default include patterns to use if no include patterns were configured.- Returns:
- A list of files.
- Throws:
IOException- If an exception occurs.
-
getFiles
Return a list of files using the specified baseDir and the configured include and exclude Ant-style glob expressions.- Parameters:
baseDir- The base directory for locating files.defaultIncludes- The default include patterns to use if no include patterns were configured.- Returns:
- A list of files.
- Throws:
IOException- If an exception occurs.
-
setInclude
Add an Ant-style glob to the include patterns.- Parameters:
include- Add an Ant-style glob
-
setExclude
Add an Ant-style glob to the exclude patterns.- Parameters:
exclude- Add an Ant-style glob
-
toString
-