Permalink
Browse files

fix for missing additional resources in modules path

  • Loading branch information...
1 parent 67d3411 commit f7fc3d5b66792f25c2bd5c74e9b94fbacc3ab01f @moovida moovida committed Apr 19, 2012
@@ -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() {
@@ -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);

0 comments on commit f7fc3d5

Please sign in to comment.