[ http://jira.codehaus.org/browse/MNG-1402?page=comments#action_49921 ] 

Tomislav Stojcevich commented on MNG-1402:
------------------------------------------

It does look like they switchd the order.

http://java.sun.com/dtd/application_1_3.dtd shows:
  <!ELEMENT application (icon?, display-name, description?, module+,
                security-role*)>


http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd which is included in 
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd shows
  <xsd:sequence>
    <xsd:element name="description" type="j2ee:descriptionType" minOccurs="0" 
maxOccurs="unbounded"/>
    <xsd:element name="display-name" type="j2ee:display-nameType" minOccurs="0" 
maxOccurs="unbounded"/>
    <xsd:element name="icon" type="j2ee:iconType" minOccurs="0" 
maxOccurs="unbounded"/>
  </xsd:sequence>

Attached is the new patch that checks for the version and writes them out 
appropriately.
I generated both and both validated correctly.

> application.xml generated incorrectly
> -------------------------------------
>
>          Key: MNG-1402
>          URL: http://jira.codehaus.org/browse/MNG-1402
>      Project: Maven 2
>         Type: Bug
>   Components: maven-ear-plugin
>     Versions: 2.0
>     Reporter: Tomislav Stojcevich
>     Priority: Minor
>  Attachments: MNG-1402-maven-ear-plugin.patch, 
> MNG-1402-maven-ear-pluginB.patch
>
>
> When generating an application.xml the description is written out before the 
> display-name.
> According to the DTD, display-name needs to be first.  See:  
> http://java.sun.com/dtd/application_1_3.dtd
> A work around is to not use a description element in the pom.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to