mirror of https://github.com/apache/maven.git
o Added boolean accessors
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@785641 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
38ecf699e3
commit
8d6f2f1139
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue