maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r771143 - /maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
Date Sun, 03 May 2009 23:02:15 GMT
Author: bentmann
Date: Sun May  3 23:02:14 2009
New Revision: 771143

URL: http://svn.apache.org/viewvc?rev=771143&view=rev
Log:
o Fixed conversion of default value for plugin configuration

Modified:
    maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java

Modified: maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
URL: http://svn.apache.org/viewvc/maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java?rev=771143&r1=771142&r2=771143&view=diff
==============================================================================
--- maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
(original)
+++ maven/components/branches/MNG-2766/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
Sun May  3 23:02:14 2009
@@ -598,7 +598,12 @@
             {
                 Xpp3Dom e = new Xpp3Dom( ce.getName() );
                 e.setValue( ce.getValue( null ) );
-                dom.addChild( e );                
+                String defaultValue = ce.getAttribute( "default-value", null );
+                if ( defaultValue != null )
+                {
+                    e.setAttribute( "default-value", defaultValue );
+                }
+                dom.addChild( e );
             }
         }
 



Mime
View raw message