Author: rob.stryker(a)jboss.com
Date: 2012-05-25 02:17:52 -0400 (Fri, 25 May 2012)
New Revision: 41403
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBoss7LaunchConfigProperties.java
Log:
JBIDE-11989
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBoss7LaunchConfigProperties.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBoss7LaunchConfigProperties.java 2012-05-25
01:25:40 UTC (rev 41402)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/v7/JBoss7LaunchConfigProperties.java 2012-05-25
06:17:52 UTC (rev 41403)
@@ -102,12 +102,14 @@
}
public void setExposedManagement(String host, ILaunchConfigurationWorkingCopy
launchConfig) throws CoreException {
- String vmArguments = getVMArguments(launchConfig);
- String arguments = ArgsUtil.setArg(vmArguments,
- null,
- IJBossRuntimeConstants.SYSPROP + IJBossRuntimeConstants.JB7_EXPOSE_MANAGEMENT,
- host);
- setVmArguments(arguments, launchConfig);
+ if( isSet(host)) {
+ String vmArguments = getVMArguments(launchConfig);
+ String arguments = ArgsUtil.setArg(vmArguments,
+ null,
+ IJBossRuntimeConstants.SYSPROP + IJBossRuntimeConstants.JB7_EXPOSE_MANAGEMENT,
+ host);
+ setVmArguments(arguments, launchConfig);
+ }
}
}
Show replies by date