Class FilesetUtils
java.lang.Object
de.iip_ecosphere.platform.tools.maven.python.FilesetUtils
Helper functions for maven filesets.
- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddExcludedPaths(String[] paths, boolean isFile, Set<String> excluded) Determines excluded paths from the given paths, i.e., split the directories add them toexcluded.static voidaddExcludedPaths(String path, boolean isFile, Set<String> excluded) Determines excluded paths from the given path, i.e., split the directories add them toexcluded.static voiddeletePaths(org.apache.maven.shared.model.fileset.FileSet fileset, String[] paths, Set<String> excluded, org.apache.maven.plugin.logging.Log log) Deletes the given paths.static voiddeletePaths(org.apache.maven.shared.model.fileset.FileSet fileset, org.apache.maven.plugin.logging.Log log) Deletes the specified included and not excluded paths.static voiddetermineFiles(org.apache.maven.shared.model.fileset.FileSet fileset, boolean considerDirectories, Consumer<File> fileConsumer) Determines the files to be processed.static voiditeratePaths(org.apache.maven.shared.model.fileset.FileSet fileset, String[] paths, Set<String> excluded, Consumer<File> fileConsumer) Iterates over paths.listFiles(org.apache.maven.shared.model.fileset.FileSet fileset, boolean considerDirectories) Materializes the files specified byfilesetas list.streamFiles(org.apache.maven.shared.model.fileset.FileSet fileset, boolean considerDirectories) Streams the files specified byfileset.static voidTouchesfileif not null.
-
Constructor Details
-
FilesetUtils
public FilesetUtils()
-
-
Method Details
-
addExcludedPaths
Determines excluded paths from the given paths, i.e., split the directories add them toexcluded.- Parameters:
paths- the paths to be excludedisFile- whether path represents a file (than ignore the last path) or whether it is a folderexcluded- the excluded paths to be modified as a side effect
-
addExcludedPaths
Determines excluded paths from the given path, i.e., split the directories add them toexcluded.- Parameters:
path- the path to be excludedisFile- whether path represents a file (than ignore the last path) or whether it is a folderexcluded- the excluded paths to be modified as a side effect
-
touch
Touchesfileif not null. Emits a warning intologif touching is not possible.- Parameters:
file- the file to touchlog- the log to be used
-