]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Working directory for the applet is defined now.
authorrkv <rkv@opencascade.com>
Wed, 5 Dec 2012 18:20:54 +0000 (18:20 +0000)
committerrkv <rkv@opencascade.com>
Wed, 5 Dec 2012 18:20:54 +0000 (18:20 +0000)
Workspace/Siman/WebContent/jap/splat-launcher.jar
Workspace/Siman/WebContent/jap/splat-signedlauncher.jar
Workspace/Siman/src/org/splat/launcher/ToolbarApplet.java

index 4c5e772c785da1a1248c278a6dfc1e6c02e21520..587729240e237305d318b1125e646dffdfb5c6ed 100644 (file)
Binary files a/Workspace/Siman/WebContent/jap/splat-launcher.jar and b/Workspace/Siman/WebContent/jap/splat-launcher.jar differ
index c4f5926e7e8e1744eba0f0c6d66332c8acf44d55..cbec878846f83b184b45ad46ee9fe0ba25663a7c 100644 (file)
Binary files a/Workspace/Siman/WebContent/jap/splat-signedlauncher.jar and b/Workspace/Siman/WebContent/jap/splat-signedlauncher.jar differ
index 92632e2b4b71c0e81ddde55d1d2f5f3e0cb4f27b..89f500f97d24b84add06ef3a4c4151ce6c61e2dd 100644 (file)
@@ -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);
                }