Author: adietish
Date: 2011-06-21 09:01:16 -0400 (Tue, 21 Jun 2011)
New Revision: 32255
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/LocalJBossServerStartupLaunchUtil.java
Log:
[JBIDE-9200] moving util methods to consistent pattern: checkedGetXX throws Exception,
getXXX returns null
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/LocalJBossServerStartupLaunchUtil.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/LocalJBossServerStartupLaunchUtil.java 2011-06-21
12:58:51 UTC (rev 32254)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/LocalJBossServerStartupLaunchUtil.java 2011-06-21
13:01:16 UTC (rev 32255)
@@ -97,7 +97,7 @@
*/
protected void updateMandatedFields(ILaunchConfigurationWorkingCopy wc, JBossServer
jbs)
throws CoreException {
- String serverHome = ServerUtil.getServerHome(jbs);
+ String serverHome = ServerUtil.checkedGetServerHome(jbs);
IJBossServerRuntime runtime =
RuntimeUtils.checkedGetJBossServerRuntime(jbs.getServer());
updateVMPath(runtime, wc);
@@ -195,7 +195,7 @@
}
protected void forceDefaultsSet(ILaunchConfigurationWorkingCopy wc, JBossServer jbs)
throws CoreException {
- String serverHome = ServerUtil.getServerHome(jbs);
+ String serverHome = ServerUtil.checkedGetServerHome(jbs);
IJBossServerRuntime jbrt = RuntimeUtils.checkedGetJBossServerRuntime(jbs.getServer());
updateVMPath(jbrt, wc);
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
getDefaultArgs(jbs));
Show replies by date