Author: scabanovich
Date: 2008-01-21 11:26:39 -0500 (Mon, 21 Jan 2008)
New Revision: 5835
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FileSystemsLoader.java
Log:
JBIDE-1664
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FileSystemsLoader.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FileSystemsLoader.java 2008-01-21
15:14:09 UTC (rev 5834)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FileSystemsLoader.java 2008-01-21
16:26:39 UTC (rev 5835)
@@ -322,15 +322,19 @@
oldAttributes.put("location", "LOCATION");
oldAttributes.put("model-path", "MODEL_PATH");
oldAttributes.put("root", "ROOT");
+ oldAttributes.put("web-root", "root");
oldAttributes.put("src", "SRC");
}
public String getAttribute(Element element, String xmlname) {
if(element == null || xmlname == null) return null;
if(!element.hasAttribute(xmlname)) {
- String oldAttribute = oldAttributes.get(xmlname);
- if(oldAttribute != null && element.hasAttribute(oldAttribute)) {
- xmlname = oldAttribute;
+ String oldAttribute = xmlname;
+ while(oldAttribute != null) {
+ oldAttribute = oldAttributes.get(oldAttribute);
+ if(oldAttribute != null && element.hasAttribute(oldAttribute)) {
+ xmlname = oldAttribute;
+ }
}
}
return super.getAttribute(element, xmlname);
Show replies by date