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

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Thu Oct 18 10:36:18 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBIDE-1102?page=comments#action_12383255 ] 
            
Viacheslav Kabanovich commented on JBIDE-1102:
----------------------------------------------

We could use AntBuildfileContentDescriber. 
However, this algorithm for recognizing ant build file has the same flaws, though it looks more impressive. 
In Eclipse, it is applied only to files named 'build.xml', so a file named pom.xml is not recognized as ant file just because it is ignored. But ant can use files named other than build.xml. So we try to recognize as ant build file any xml, and if we apply AntBuildfileContentDescriber for something like

<project xmlns="XXX" 
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                xsi:schemaLocation="XXX XXX.xsd">
  <path></path>
</project>

where XXX.xsd schema defines root element 'project' and its child 'path', the describer will recognize it as 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 &quot;{http://maven.apache.org/POM/4.0.0}project&quot; {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