Author: scabanovich
Date: 2011-02-16 05:15:43 -0500 (Wed, 16 Feb 2011)
New Revision: 29170
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebProjectCreationOperation.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/WebProjectCreationOperation.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebProjectCreationOperation.java 2011-02-16
10:14:08 UTC (rev 29169)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebProjectCreationOperation.java 2011-02-16
10:15:43 UTC (rev 29170)
@@ -59,6 +59,10 @@
setProperty(WebNatureOperation.REGISTER_WEB_CONTEXT_ID,
context.getActionProperties().getProperty(NewWebProjectContext.ATTR_REGISTER_WEB_CONTEXT));
setProperty(WebNatureOperation.RUNTIME_NAME,
context.getRegisterServerContext().getRuntimeName());
setProperty(WebNatureOperation.JAVA_SOURCES_LOCATION_ID, getJavaSources());
+ String contextRoot = context.getRegisterServerContext().getApplicationName();
+ if(contextRoot != null && contextRoot.length() > 0) {
+ setProperty("WebNatureOperation.CONTEXT_ROOT", contextRoot);
+ }
}
protected abstract IWebProjectTemplate createTemplate();