Package aQute.lib.io
Class FileTree
java.lang.Object
aQute.lib.io.FileTree
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExcludes
(String... excludes) Add an Ant-style glob to the exclude patterns.void
addExcludes
(List<String> excludes) Add an Ant-style glob to the exclude patterns.void
Can be used to add specific files to the return value ofgetFiles(File, String...)
andgetFiles(File, List)
.void
addIncludes
(String... includes) Add an Ant-style glob to the include patterns.void
addIncludes
(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.toString()
-
Field Details
-
files
-
paths
-
-
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
Add an Ant-style glob to the include patterns.- Parameters:
includes
- Add an Ant-style glob
-
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
Add an Ant-style glob to the exclude patterns.- Parameters:
excludes
- Add an Ant-style glob
-
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.
-
getFiles
- Throws:
IOException
-
toString
-