]> 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 d69ed53946467335ff0790840be7dcc2c356e088..6f54e64d120536b2c40e63f2461f68ff05c9eb35 100644 (file)
@@ -54,7 +54,7 @@ public class OsgiLaunchHelper implements OsgiLauncherConstants {
 
        private final static String DEFAULT_DATA_DIR = "data";
        private final static String DEFAULT_EXEC_DIR = "exec";
-       private final static String DEFAULT_VMARGS = "-Xmx128m";
+       private final static String DEFAULT_VMARGS = "-Xmx256m";
        private final static String DEFAULT_PROGRAM_ARGS = "-console";
 
        /** Sets default values on this configuration. */
@@ -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 {