String extensions = "";
// Look for the launching script in the file system
for (String ext : SCRIPT_EXT) {
- script = new File(pathToScript + ext); //RKV: NOPMD: There are not so much extensions
+ script = new File(pathToScript + ext); // RKV: NOPMD: There are not so much extensions
if (script.exists()) {
break;
}
// Execute the runSalome script.
// filename here indeed a string containing parameters for runSalome.
Runtime.getRuntime().exec(
- new String[] { script.getAbsolutePath(), params });
+ new String[] { script.getAbsolutePath(), params },
+ null, new File(SALOME_HOME));
// Refresh the current scenario view
getAppletContext().showDocument(
new URL(this.getParameter("refresh")));
}
} else {
extensions = "[" + extensions.replaceAll("\\|\\|", "") + "]";
- showError("SALOME module is not found: " + pathToScript + extensions);
+ showError("SALOME module is not found: " + pathToScript
+ + extensions);
throw new ConfigurationException("SALOME module is not found: "
+ pathToScript + extensions);
}