From: rkv Date: Wed, 5 Dec 2012 18:20:54 +0000 (+0000) Subject: Working directory for the applet is defined now. X-Git-Tag: Root_Delivery1_2012_12_06~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c72815f5217323694869042c3504cda62c6a205c;p=tools%2Fsiman.git Working directory for the applet is defined now. --- diff --git a/Workspace/Siman/WebContent/jap/splat-launcher.jar b/Workspace/Siman/WebContent/jap/splat-launcher.jar index 4c5e772..5877292 100644 Binary files a/Workspace/Siman/WebContent/jap/splat-launcher.jar and b/Workspace/Siman/WebContent/jap/splat-launcher.jar differ diff --git a/Workspace/Siman/WebContent/jap/splat-signedlauncher.jar b/Workspace/Siman/WebContent/jap/splat-signedlauncher.jar index c4f5926..cbec878 100644 Binary files a/Workspace/Siman/WebContent/jap/splat-signedlauncher.jar and b/Workspace/Siman/WebContent/jap/splat-signedlauncher.jar differ diff --git a/Workspace/Siman/src/org/splat/launcher/ToolbarApplet.java b/Workspace/Siman/src/org/splat/launcher/ToolbarApplet.java index 92632e2..89f500f 100644 --- a/Workspace/Siman/src/org/splat/launcher/ToolbarApplet.java +++ b/Workspace/Siman/src/org/splat/launcher/ToolbarApplet.java @@ -211,7 +211,7 @@ public class ToolbarApplet extends java.applet.Applet implements ActionListener 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; } @@ -244,7 +244,8 @@ public class ToolbarApplet extends java.applet.Applet implements ActionListener // 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"))); @@ -260,7 +261,8 @@ public class ToolbarApplet extends java.applet.Applet implements ActionListener } } 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); }