You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/12/20 09:33:48 UTC

[maven-ear-plugin] 31/45: fix ordering of display-name and description in accordance with the xsd

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-ear-plugin-2.0
in repository https://gitbox.apache.org/repos/asf/maven-ear-plugin.git

commit efcb59de703a0192d8bad542009281694bb3859c
Author: Brett Leslie Porter <br...@apache.org>
AuthorDate: Fri Sep 30 11:48:46 2005 +0000

    fix ordering of display-name and description in accordance with the xsd
    
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven-ear-plugin@292709 13f79535-47bb-0310-9956-ffa450edef68
---
 .../org/apache/maven/plugin/ear/ApplicationXmlWriter.java    | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugin/ear/ApplicationXmlWriter.java b/src/main/java/org/apache/maven/plugin/ear/ApplicationXmlWriter.java
index 9df9fde..9f1e2a3 100644
--- a/src/main/java/org/apache/maven/plugin/ear/ApplicationXmlWriter.java
+++ b/src/main/java/org/apache/maven/plugin/ear/ApplicationXmlWriter.java
@@ -76,17 +76,17 @@ public final class ApplicationXmlWriter
             writer = initializeRootElementOneDotFour( w );
         }
 
-        if ( displayName != null )
+        if ( description != null )
         {
-            writer.startElement( "display-name" );
-            writer.writeText( displayName );
+            writer.startElement( "description" );
+            writer.writeText( description );
             writer.endElement();
         }
 
-        if ( description != null )
+        if ( displayName != null )
         {
-            writer.startElement( "description" );
-            writer.writeText( description );
+            writer.startElement( "display-name" );
+            writer.writeText( displayName );
             writer.endElement();
         }
 

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.