You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2007/02/24 21:32:37 UTC

svn commit: r511339 - /maven/components/trunk/maven-model/src/main/mdo/maven.mdo

Author: jvanzyl
Date: Sat Feb 24 12:32:36 2007
New Revision: 511339

URL: http://svn.apache.org/viewvc?view=rev&rev=511339
Log:
MNG-2846 Make the output of Model.getId() nicer 

Modified:
    maven/components/trunk/maven-model/src/main/mdo/maven.mdo

Modified: maven/components/trunk/maven-model/src/main/mdo/maven.mdo
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-model/src/main/mdo/maven.mdo?view=diff&rev=511339&r1=511338&r2=511339
==============================================================================
--- maven/components/trunk/maven-model/src/main/mdo/maven.mdo (original)
+++ maven/components/trunk/maven-model/src/main/mdo/maven.mdo Sat Feb 24 12:32:36 2007
@@ -496,13 +496,13 @@
             {
                 StringBuffer id = new StringBuffer();
 
-                id.append( getGroupId() );
+                id.append( getGroupId() == null ? "[inherited]" : getGroupId() );
                 id.append( ":" );
                 id.append( getArtifactId() );
                 id.append( ":" );
                 id.append( getPackaging() );
                 id.append( ":" );
-                id.append( getVersion() );
+                id.append( getVersion() == null ? "[inherited]" : getVersion() );
 
                 return id.toString();
             }