Package org.kie.kogito.codegen.core.io
Class CollectedResourceProducer
java.lang.Object
org.kie.kogito.codegen.core.io.CollectedResourceProducer
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<CollectedResource>fromDirectory(Path path) static Collection<CollectedResource>fromDirectory(Path path, boolean ignoreHiddenFiles) Returns a collection of CollectedResource from the given directory.static Collection<CollectedResource>Returns a collection of CollectedResource from the given filesstatic Collection<CollectedResource>static Collection<CollectedResource>fromJarFile(Path jarPath) Returns a collection of CollectedResource from the given jar file.static Collection<CollectedResource>Returns a collection of CollectedResource from the given paths.static Collection<CollectedResource>
-
Method Details
-
fromPaths
- See Also:
-
fromPaths
Returns a collection of CollectedResource from the given paths. If a path is a jar, then walks inside the jar.- Parameters:
paths- the paths to where to collect resourcesignoreHiddenFiles- whether to ignore hidden files and directories- See Also:
-
fromJarFile
Returns a collection of CollectedResource from the given jar file. -
fromDirectory
- See Also:
-
fromDirectory
Returns a collection of CollectedResource from the given directory.- Parameters:
path- the path to where to start to collect resourcesignoreHiddenFiles- whether to ignore hidden files and directories- See Also:
-
fromFiles
- See Also:
-
fromFiles
public static Collection<CollectedResource> fromFiles(Path basePath, boolean ignoreHiddenFiles, File... files) Returns a collection of CollectedResource from the given files- Parameters:
basePath- the base path to where to start to collect resourcesignoreHiddenFiles- whether to ignore hidden files and directoriesfiles- the files to read from the given base path- See Also:
-