Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix for missing additional resources in modules path

  • Loading branch information...
commit f7fc3d5b66792f25c2bd5c74e9b94fbacc3ab01f 1 parent 67d3411
@moovida moovida authored
View
8 plugins/eu.udig.omsbox/src/eu/udig/omsbox/core/OmsModulesManager.java
@@ -74,10 +74,16 @@
private URLClassLoader jarClassloader;
private OmsModulesManager() {
+ getModulesJars();
+ }
+
+ public List<String> getModulesJars() {
+ List<String> jarsPathList = new ArrayList<String>();
// add jars from preferences
String[] retrieveSavedJars = OmsBoxPlugin.getDefault().retrieveSavedJars();
for( String jar : retrieveSavedJars ) {
addJar(jar);
+ jarsPathList.add(jar);
}
/*
@@ -97,9 +103,11 @@ public boolean accept( File dir, String name ) {
});
for( File extraJar : extraJars ) {
addJar(extraJar.getAbsolutePath());
+ jarsPathList.add(extraJar.getAbsolutePath());
}
}
}
+ return jarsPathList;
}
public synchronized static OmsModulesManager getInstance() {
View
2  plugins/eu.udig.omsbox/src/eu/udig/omsbox/core/OmsScriptExecutor.java
@@ -158,7 +158,7 @@ public Process exec( String script, final PrintStream internalStream, final Prin
arguments.add(ramExpr);
// modules jars
- String[] modulesJars = OmsBoxPlugin.getDefault().retrieveSavedJars();
+ List<String> modulesJars = OmsModulesManager.getInstance().getModulesJars();
StringBuilder sb = new StringBuilder();
for( String moduleJar : modulesJars ) {
sb.append(File.pathSeparator).append(moduleJar);
Please sign in to comment.
Something went wrong with that request. Please try again.