Author: scabanovich
Date: 2011-02-16 05:14:08 -0500 (Wed, 16 Feb 2011)
New Revision: 29169
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java
Log:
JBIDE-8424
https://issues.jboss.org/browse/JBIDE-8424
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java 2011-02-16
09:25:03 UTC (rev 29168)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java 2011-02-16
10:14:08 UTC (rev 29169)
@@ -455,6 +455,10 @@
if(configJavaDM != null && sv != null && sv.indexOf("3.0")
>= 0) { //$NON-NLS-1$
configJavaDM.setProperty(IFacetDataModelProperties.FACET_VERSION_STR,
"1.6"); //$NON-NLS-1$
}
+ String contextRoot = getProperty("WebNatureOperation.CONTEXT_ROOT");
+ if(contextRoot != null && contextRoot.length() > 0 &&
!contextRoot.equals(getProject().getName())) {
+ configDM.setProperty(IWebFacetInstallDataModelProperties.CONTEXT_ROOT, contextRoot);
+ }
if(webroot != null) {
int i = webroot.lastIndexOf("/"); //$NON-NLS-1$