You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/06/17 16:56:20 UTC

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

Author: bentmann
Date: Wed Jun 17 14:56:19 2009
New Revision: 785641

URL: http://svn.apache.org/viewvc?rev=785641&view=rev
Log:
o Added boolean accessors

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?rev=785641&r1=785640&r2=785641&view=diff
==============================================================================
--- maven/components/trunk/maven-model/src/main/mdo/maven.mdo (original)
+++ maven/components/trunk/maven-model/src/main/mdo/maven.mdo Wed Jun 17 14:56:19 2009
@@ -3309,8 +3309,14 @@
           <name>inherited</name>
           <version>4.0.0</version>
           <type>String</type>
-          <description>Whether the configuration in this plugin should be made available to projects
-            that inherit from this one.</description>
+          <description>
+            <![CDATA[
+            Whether the configuration in this plugin should be made available to projects
+            that inherit from this one. Note: While the type of this field is <code>String</code>
+            for technical reasons, the semantic type is actually <code>Boolean</code>.
+            Default value is <code>true</code>.
+            ]]>
+          </description>
         </field>
         <field>
           <name>configuration</name>
@@ -3388,6 +3394,16 @@
         return groupId + ":" + artifactId;
     }
 
+    public boolean isInherited()
+    {
+        return ( inherited != null ) ? Boolean.parseBoolean( inherited ) : true;
+    }
+
+    public void setInherited( boolean inherited )
+    {
+        this.inherited = String.valueOf( inherited );
+    }
+
     private boolean inheritanceApplied = true;
 
     public void unsetInheritanceApplied()