[jboss-cvs] jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server ...
Robert Stryker
rawblem at gmail.com
Tue Sep 19 14:52:45 EDT 2006
User: rawb
Date: 06/09/19 14:52:45
Modified: as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server
JBossLaunchConfigurationDelegate.java
Log:
Update server mode with debug or run
Revision Changes Path
1.7 +11 -7 jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/JBossLaunchConfigurationDelegate.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: JBossLaunchConfigurationDelegate.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/JBossLaunchConfigurationDelegate.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- JBossLaunchConfigurationDelegate.java 18 Sep 2006 17:50:11 -0000 1.6
+++ JBossLaunchConfigurationDelegate.java 19 Sep 2006 18:52:45 -0000 1.7
@@ -79,13 +79,14 @@
String jndiHost = newHost + ":" + jndiPort;
- String newStartArgs = RuntimeConfigUtil.setCommandArguments(startArgs, "-b", "--host", newHost);
- String newStopArgs = RuntimeConfigUtil.setCommandArguments(stopArgs, "-s", "--server", jndiHost);
- String newTwidArgs = RuntimeConfigUtil.setCommandArguments(twiddleArgs, "-s", "--server", jndiHost);
-
- ASDebug.p("start: " + startArgs + " -> " + newStartArgs, JBossLaunchConfigurationDelegate.class);
- ASDebug.p("stop: " + stopArgs + " -> " + newStopArgs, JBossLaunchConfigurationDelegate.class);
- ASDebug.p("twiddle: " + twiddleArgs + " -> " + newTwidArgs, JBossLaunchConfigurationDelegate.class);
+ String newStartArgs = RuntimeConfigUtil.createCommandArguments(startArgs, "-b", "--host", newHost);
+ String newStopArgs = RuntimeConfigUtil.createCommandArguments(stopArgs, "-s", "--server", jndiHost);
+ String newTwidArgs = RuntimeConfigUtil.createCommandArguments(twiddleArgs, "-s", "--server", jndiHost);
+
+ wc.setAttribute(startArgsKey, newStartArgs);
+ wc.setAttribute(stopArgsKey, newStopArgs);
+ wc.setAttribute(twiddleArgsKey, newTwidArgs);
+ wc.doSave();
}
public static ILaunchConfigurationWorkingCopy setupLaunchConfiguration(JBossServer server, String action) throws CoreException {
@@ -304,6 +305,9 @@
String vmArgs = configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, (String)null);
if( action.equals(JBossServerBehavior.ACTION_STARTING)) {
+ Server s = (Server)getJBossServer(configuration).getServer();
+ if( s != null )
+ ((Server)getJBossServer(configuration).getServer()).setMode(mode);
launchServerStart(configuration, mode, launch, monitor);
} else if( action.equals(JBossServerBehavior.ACTION_STOPPING)) {
launchServerStop(configuration, mode, launch, monitor);
More information about the jboss-cvs-commits
mailing list