Class ResourceInstaller


  • public class ResourceInstaller
    extends Object
    Installs resources from a given source to a given target.
    Version:
    $Revision$ $Date$
    • Constructor Detail

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

        public static Path findModuleCodeBasePath​(Class clazz)