Package org.esa.snap.core.util
Class ResourceInstaller
- java.lang.Object
-
- org.esa.snap.core.util.ResourceInstaller
-
public class ResourceInstaller extends Object
Installs resources from a given source to a given target.- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description ResourceInstaller(Path sourceDirPath, Path targetDirPath)
Creates an instance with a given source to a given target.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Path
findModuleCodeBasePath(Class clazz)
void
install(String patternString, ProgressMonitor pm)
Installs all resources found, matching the given pattern.
-
-
-
Method Detail
-
install
public void install(String patternString, ProgressMonitor pm) throws IOException
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:
FileSystem.getPathMatcher(String)
-
-