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 Details

    • ResourceInstaller

      public ResourceInstaller(Path sourceDirPath, Path targetDirPath)
      Creates an instance with a given source to a given target.
      Parameters:
      sourceDirPath - the source directory path
      targetDirPath - the target directory
  • Method Details

    • 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:
    • findModuleCodeBasePath

      public static Path findModuleCodeBasePath(Class clazz)