Author: scabanovich
Date: 2007-10-31 12:04:44 -0400 (Wed, 31 Oct 2007)
New Revision: 4597
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebDirProjectContext.java
Log:
JBIDE-1234
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebDirProjectContext.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebDirProjectContext.java 2007-10-31
15:13:06 UTC (rev 4596)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebDirProjectContext.java 2007-10-31
16:04:44 UTC (rev 4597)
@@ -23,6 +23,7 @@
import org.jboss.tools.common.util.FileUtil;
import org.jboss.tools.jst.web.WebModelPlugin;
import org.jboss.tools.jst.web.messages.xpl.WebUIMessages;
+import org.jboss.tools.jst.web.model.helpers.WebAppHelper;
public abstract class ImportWebDirProjectContext extends ImportWebProjectContext {
public static final String PAGE_NAME = "WebPrjAdoptStepName"; //$NON-NLS-1$
@@ -96,6 +97,12 @@
modules = createAdoptContext().createModulesInfo(webxml, webInfFile);
createAllModules();
setProjectJavaSrc();
+ if(webxml != null) {
+ String sv = WebAppHelper.getServletVersion(webxml);
+ if(sv != null && sv.length() > 0) {
+ setServletVersion(sv);
+ }
+ }
}
protected void setProjectJavaSrc() {
Show replies by date