Author: fbricon
Date: 2012-05-08 18:39:34 -0400 (Tue, 08 May 2012)
New Revision: 40861
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java
Log:
JBIDE-10930 : don't add an extra / if context root starts with / already
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java 2012-05-08
20:20:45 UTC (rev 40860)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java 2012-05-08
22:39:34 UTC (rev 40861)
@@ -212,7 +212,7 @@
contextRoot = webModule.getContextRoot();
}
if( !contextRoot.equals("/") && !contextRoot.equals("./"))
//$NON-NLS-1$ //$NON-NLS-2$
- url += "/"+contextRoot; //$NON-NLS-1$
+ url += contextRoot.startsWith("/") ? contextRoot :
"/"+contextRoot; //$NON-NLS-1$ //$NON-NLS-2$
if (!url.endsWith("/")) //$NON-NLS-1$
url += "/"; //$NON-NLS-1$
Show replies by date