]> 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/OsgiLaunchHelper.java
Catch all exception types
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.ide.ui / src / main / java / org / argeo / slc / ide / ui / launch / osgi / OsgiLaunchHelper.java
index e8e3bf73de796332780935f6ee2d0bae5b14325f..6f54e64d120536b2c40e63f2461f68ff05c9eb35 100644 (file)
@@ -74,7 +74,7 @@ public class OsgiLaunchHelper implements OsgiLauncherConstants {
                        String originalVmArgs = wc.getAttribute(
                                        IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, "");
                        wc.setAttribute(ATTR_DEFAULT_VM_ARGS, originalVmArgs);
-                       wc.setAttribute(IPDELauncherConstants.CONFIG_CLEAR_AREA, false);
+                       wc.setAttribute(IPDELauncherConstants.CONFIG_CLEAR_AREA, true);
                } catch (CoreException e) {
                        Shell shell = Display.getCurrent().getActiveShell();
                        ErrorDialog.openError(shell, "Error",
@@ -435,7 +435,7 @@ public class OsgiLaunchHelper implements OsgiLauncherConstants {
                try {
                        in = file.getContents();
                        props.load(in);
-               } catch (IOException e) {
+               } catch (Exception e) {
                        throw new CoreException(new Status(IStatus.ERROR,
                                        SlcIdeUiPlugin.ID, "Cannot read properties file", e));
                } finally {