]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - eclipse/plugins/org.argeo.slc.ide.ui/src/main/java/org/argeo/slc/ide/ui/launch/osgi/AbstractOsgiLaunchShortcut.java
Clean up code
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.ide.ui / src / main / java / org / argeo / slc / ide / ui / launch / osgi / AbstractOsgiLaunchShortcut.java
index 757e528bd203775f4a1659bbd227e5025f724534..08c06e09d9c47cebe52da578d885fa26053b828e 100644 (file)
@@ -45,16 +45,18 @@ public abstract class AbstractOsgiLaunchShortcut extends OSGiLaunchShortcut {
                                                                        .getAttribute(
                                                                                        IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS,
                                                                                        ""));
-                       String defaultProgArgs = configuration.getAttribute(
-                                       IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
-                                       "");
-                       configuration.setAttribute(
-                                       OsgiLauncherConstants.ATTR_DEFAULT_PROGRAM_ARGS,
-                                       defaultProgArgs);
+//                     String defaultProgArgs = configuration.getAttribute(
+//                                     IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
+//                                     "");
+//                     configuration.setAttribute(
+//                                     OsgiLauncherConstants.ATTR_DEFAULT_PROGRAM_ARGS,
+//                                     defaultProgArgs);
 
+                       configuration.setAttribute(
+                                       IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY,
+                                       findWorkingDirectory());
                        OsgiLaunchHelper.updateLaunchConfiguration(configuration,
-                                       bundlesToStart, systemPropertiesToAppend,
-                                       findWorkingDirectory(), null);
+                                       bundlesToStart, systemPropertiesToAppend, null);
                } catch (CoreException e) {
                        Shell shell = Display.getCurrent().getActiveShell();
                        ErrorDialog.openError(shell, "Error",