Author: rob.stryker(a)jboss.com
Date: 2007-09-11 00:43:29 -0400 (Tue, 11 Sep 2007)
New Revision: 3520
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/launch/StopLaunchConfiguration.java
Log:
launch config created a config that ended in -p (blank password)
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/launch/StopLaunchConfiguration.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/launch/StopLaunchConfiguration.java 2007-09-11
02:19:19 UTC (rev 3519)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/launch/StopLaunchConfiguration.java 2007-09-11
04:43:29 UTC (rev 3520)
@@ -66,9 +66,9 @@
public static String getDefaultArgs(JBossServer jbs) throws CoreException {
String args = "-S ";
- if( jbs.getUsername() != null )
+ if( jbs.getUsername() != null && !jbs.getUsername().equals(""))
args += "-u " + jbs.getUsername() + " ";
- if( jbs.getPassword() != null )
+ if( jbs.getPassword() != null && !jbs.getUsername().equals(""))
args += "-p " + jbs.getPassword() + " ";
return args;
}