org.esa.beam.util
Class ResourceInstaller
java.lang.Object
org.esa.beam.util.ResourceInstaller
public class ResourceInstaller
- extends Object
Installs resources from a given source to a given target.
- Version:
- $Revision$ $Date$
- Author:
- Marco Peters
|
Constructor Summary |
ResourceInstaller(URL sourceBaseUrl,
String sourceRelPath,
File targetDir)
Creates an instance with a given source to a given target. |
|
Method Summary |
static URL |
getSourceUrl(Class aClass)
|
void |
install(String patternString,
com.bc.ceres.core.ProgressMonitor pm)
Installs all resources found, matching the given pattern. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceInstaller
public ResourceInstaller(URL sourceBaseUrl,
String sourceRelPath,
File targetDir)
- Creates an instance with a given source to a given target.
- Parameters:
sourceBaseUrl - the source's base URLsourceRelPath - the source's relative pathtargetDir - the target directory
install
public void install(String patternString,
com.bc.ceres.core.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 patternpm - progress monitor for indicating progress
- Throws:
IOException
getSourceUrl
public static URL getSourceUrl(Class aClass)
Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.