[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-1102) Red Hat XML editor confused Maven pom.xml file with Ant build files

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Wed Oct 17 06:31:03 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBIDE-1102?page=all ]

Viacheslav Kabanovich resolved JBIDE-1102.
------------------------------------------

    Resolution: Done

Yes, studio uses Ant Editor to open files recognized as ant build files. The problem is that ant build files do not specify dtd or schema, so a simple recognition algorithm was used: root element must be "project" and its children elements named "target" have attribute "name". Now, I have added a rule that if the root element has attribute 'xmlns', the file will not be recognized as an ant build file.

> Red Hat XML editor confused Maven pom.xml file with Ant build files
> -------------------------------------------------------------------
>
>                 Key: JBIDE-1102
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1102
>             Project: JBoss Tools
>          Issue Type: Bug
>          Components: XML Structured Editor, jsp/jsf/xml source editing
>    Affects Versions: 2.0.0.Beta4
>         Environment: Windows XP Professional SP 2
>            Reporter: Reinhard Nägele
>         Assigned To: Viacheslav Kabanovich
>            Priority: Minor
>             Fix For: 2.0.1
>
>         Attachments: pom.xml, Screenshot.jpg
>
>
> The Red Hat XML Editor seems to confuse Maven pom.xml files with Ant build files. The error icon is displayed in the gutter giving the following tool tip message:
> Unexpected element "{http://maven.apache.org/POM/4.0.0}project" {antlib:org.apache.tools.ant}project
> Due to this error, code completion does not work. The standard WTP XML editor is not affected of this problem and works as expected.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the jbosstools-issues mailing list