Package aQute.lib.io
Class FileTree
java.lang.Object
aQute.lib.io.FileTree
-
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 specified relative path matching predicate.Return a list of files using the specified baseDir and the configured include and exclude Ant-style glob expressions.Return a stream of files using the specified baseDir and the configured include and exclude Ant-style glob expressions.Return a stream of files using the specified baseDir and the specified relative path matching predicate.Return a stream of files using the specified baseDir and the configured include and exclude Ant-style glob expressions.toString()
-
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.
-
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.
-
getFiles
Return a list of files using the specified baseDir and the specified relative path matching predicate.- Parameters:
baseDir- The base directory for locating files.matches- The path matching predicate. The predicate only matches against the relative path from the specified baseDir.- Returns:
- A list of files.
-
stream
Return a stream 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 stream of files.
-
stream
Return a stream 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 stream of files.
-
stream
Return a stream of files using the specified baseDir and the specified relative path matching predicate.- Parameters:
baseDir- The base directory for locating files.matches- The path matching predicate. The predicate only matches against the relative path from the specified baseDir.- Returns:
- A stream of files.
-
toString
-