From 9ea0f181cc4b6c3ce5aa429a7f739f38bd84f216 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Fri, 30 Sep 2005 11:48:46 +0000 Subject: [PATCH] fix ordering of display-name and description in accordance with the xsd git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@292709 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/plugin/ear/ApplicationXmlWriter.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/maven-plugins/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/ApplicationXmlWriter.java b/maven-plugins/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/ApplicationXmlWriter.java index 9df9fdeaf5..9f1e2a377d 100644 --- a/maven-plugins/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/ApplicationXmlWriter.java +++ b/maven-plugins/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/ApplicationXmlWriter.java @@ -76,13 +76,6 @@ public final class ApplicationXmlWriter writer = initializeRootElementOneDotFour( w ); } - if ( displayName != null ) - { - writer.startElement( "display-name" ); - writer.writeText( displayName ); - writer.endElement(); - } - if ( description != null ) { writer.startElement( "description" ); @@ -90,6 +83,13 @@ public final class ApplicationXmlWriter writer.endElement(); } + if ( displayName != null ) + { + writer.startElement( "display-name" ); + writer.writeText( displayName ); + writer.endElement(); + } + Iterator i = earModules.iterator(); while ( i.hasNext() ) {