Author: rob.stryker(a)jboss.com
Date: 2012-05-31 03:18:10 -0400 (Thu, 31 May 2012)
New Revision: 41568
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEJBoss7LaunchConfigurator.java
Log:
JBIDE-12041 to trunk
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEJBoss7LaunchConfigurator.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEJBoss7LaunchConfigurator.java 2012-05-31
07:17:01 UTC (rev 41567)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEJBoss7LaunchConfigurator.java 2012-05-31
07:18:10 UTC (rev 41568)
@@ -89,12 +89,14 @@
protected String getArgsOverrideHost(IServer server, String preArgs) {
// Overrides
+ String host = server.getHost();
if( LaunchCommandPreferences.listensOnAllHosts(jbossServer.getServer())) {
- return ArgsUtil.setArg(preArgs,
+ host = "0.0.0.0";
+ }
+
+ return ArgsUtil.setArg(preArgs,
IJBossRuntimeConstants.STARTUP_ARG_HOST_SHORT,
- null, "0.0.0.0");
- }
- return preArgs;
+ null, host);
}
protected String getArgsOverrideConfigFile(IServer server, String preArgs) {