Author: scabanovich
Date: 2007-10-17 06:20:55 -0400 (Wed, 17 Oct 2007)
New Revision: 4283
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/ant/parser/AntParser.java
Log:
JBIDE-1102
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/ant/parser/AntParser.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/ant/parser/AntParser.java 2007-10-17
09:33:36 UTC (rev 4282)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/ant/parser/AntParser.java 2007-10-17
10:20:55 UTC (rev 4283)
@@ -22,6 +22,8 @@
Element element = XMLUtil.getElement(new StringReader(body));
if(element == null) return;
if(!"project".equals(element.getNodeName())) return;
+ if(element.getAttributeNode("xmlns") != null) return;
+ if(element.getAttributeNode("xsi:schemaLocation") != null) return;
NodeList es = element.getElementsByTagName("target");
for (int i = 0; i < es.getLength(); i++)
if(!((Element)es.item(i)).hasAttribute("name")) return;