Author: adietish
Date: 2011-05-03 07:14:55 -0400 (Tue, 03 May 2011)
New Revision: 31027
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBossRuntimeLaunchConfigBuilder.java
Log:
[JBIDE-8793] extracted methods to util class
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBossRuntimeLaunchConfigBuilder.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBossRuntimeLaunchConfigBuilder.java 2011-05-03
10:58:16 UTC (rev 31026)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBossRuntimeLaunchConfigBuilder.java 2011-05-03
11:14:55 UTC (rev 31027)
@@ -13,7 +13,6 @@
import java.util.List;
import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
import org.eclipse.jdt.launching.IVMInstall;
@@ -70,12 +69,17 @@
}
public JBossRuntimeLaunchConfigBuilder setWorkingDirectory(IRuntime runtime) {
- IPath location = runtime.getLocation();
- launchConfig.setAttribute(IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY,
- location.append(IJBossRuntimeResourceConstants.BIN).toString());
+ setWorkingDirectory(
+ runtime.getLocation().append(IJBossRuntimeResourceConstants.BIN).toString());
return this;
}
+ public JBossRuntimeLaunchConfigBuilder setWorkingDirectory(String directory) {
+ launchConfig.setAttribute(
+ IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY, directory);
+ return this;
+ }
+
public void setServerId(IServer server) {
launchConfig.setAttribute(AbstractJBossLaunchConfigType.SERVER_ID, server.getId());
}
Show replies by date