Package org.esa.snap.core.util
Class ResourceInstaller
java.lang.Object
org.esa.snap.core.util.ResourceInstaller
Installs resources from a given source to a given target.
- Version:
- $Revision$ $Date$
-
Constructor Summary
ConstructorsConstructorDescriptionResourceInstaller(Path sourceDirPath, Path targetDirPath) Creates an instance with a given source to a given target. -
Method Summary
Modifier and TypeMethodDescriptionstatic PathfindModuleCodeBasePath(Class clazz) voidinstall(String patternString, ProgressMonitor pm) Installs all resources found, matching the given pattern.
-
Constructor Details
-
ResourceInstaller
Creates an instance with a given source to a given target.- Parameters:
sourceDirPath- the source directory pathtargetDirPath- the target directory
-
-
Method Details
-
install
Installs all resources found, matching the given pattern. Existing resources are left as-is and are not overwritten.- Parameters:
patternString- the search pattern. Specifies the pattern and the syntax for searching for resources. The syntax can either be 'glob:' or 'regex:'. If the syntax does not start with one of the syntax identifiers 'regex:' is pre-pended.pm- progress monitor for indicating progress- Throws:
IOException- See Also:
-
findModuleCodeBasePath
-