Author: rob.stryker(a)jboss.com
Date: 2007-11-21 15:14:31 -0500 (Wed, 21 Nov 2007)
New Revision: 5023
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/StopLaunchConfiguration.java
Log:
JBIDE-1350 - stop configuration was not receiving server parameters.
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/StopLaunchConfiguration.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/StopLaunchConfiguration.java 2007-11-21
19:38:55 UTC (rev 5022)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/StopLaunchConfiguration.java 2007-11-21
20:14:31 UTC (rev 5023)
@@ -38,6 +38,7 @@
import org.eclipse.debug.core.ILaunchManager;
import org.eclipse.debug.core.model.IProcess;
import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
+import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
import org.eclipse.wst.server.core.IServer;
import org.jboss.ide.eclipse.as.core.JBossServerCorePlugin;
import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
@@ -87,7 +88,7 @@
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
getDefaultArgs(jbs));
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,
STOP_MAIN_TYPE);
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY, serverHome +
Path.SEPARATOR + "bin");
- ArrayList classpath = new ArrayList();
+ ArrayList<IRuntimeClasspathEntry> classpath = new
ArrayList<IRuntimeClasspathEntry>();
addCPEntry(classpath, jbs, STOP_JAR_LOC);
ArrayList runtimeClassPaths = convertClasspath(classpath, jbrt.getVM());
String cpKey = IJavaLaunchConfigurationConstants.ATTR_CLASSPATH;
@@ -99,6 +100,7 @@
public static String getDefaultArgs(JBossServer jbs) throws CoreException {
String args = "-S ";
+ args += "-s " + jbs.getServer().getHost() + ":" +
jbs.getJNDIPort();
if( jbs.getUsername() != null && !jbs.getUsername().equals(""))
args += "-u " + jbs.getUsername() + " ";
if( jbs.getPassword() != null && !jbs.getUsername().equals(""))
Show replies by date