mirror of https://github.com/apache/maven.git
[MNG-7463] Improve documentation about deprecation in Mojo
This commit is contained in:
parent
5502c0c8db
commit
47e2d689d6
|
@ -88,8 +88,8 @@ public class MojoDescriptor
|
||||||
private String executeLifecycle;
|
private String executeLifecycle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify the version when the Mojo was deprecated to the API. Similar to Javadoc deprecated. This will trigger a
|
* Description with reason of Mojo deprecation. Similar to Javadoc {@code @deprecated}.
|
||||||
* warning when a user tries to configure a parameter marked as deprecated.
|
* This will trigger a warning when a user tries to use a Mojo marked as deprecated.
|
||||||
*/
|
*/
|
||||||
private String deprecated;
|
private String deprecated;
|
||||||
|
|
||||||
|
@ -170,7 +170,7 @@ public class MojoDescriptor
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return <code>true</code> if the Mojo is deprecated, <code>false</code> otherwise.
|
* @return Description with reason of a Mojo deprecation.
|
||||||
*/
|
*/
|
||||||
public String getDeprecated()
|
public String getDeprecated()
|
||||||
{
|
{
|
||||||
|
@ -178,7 +178,7 @@ public class MojoDescriptor
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param deprecated <code>true</code> to deprecate the Mojo, <code>false</code> otherwise.
|
* @param deprecated Description with reason of a Mojo deprecation.
|
||||||
*/
|
*/
|
||||||
public void setDeprecated( String deprecated )
|
public void setDeprecated( String deprecated )
|
||||||
{
|
{
|
||||||
|
|
|
@ -289,10 +289,10 @@ under the License.
|
||||||
<name>deprecated</name>
|
<name>deprecated</name>
|
||||||
<version>1.0.0</version>
|
<version>1.0.0</version>
|
||||||
<type>String</type>
|
<type>String</type>
|
||||||
<description>
|
<description><![CDATA[
|
||||||
Specify the version when the Mojo was deprecated to the API. Similar to Javadoc deprecated. This will
|
Description with the reason of Mojo deprecation. Similar to Javadoc <code>@deprecated</code>
|
||||||
trigger a warning when a user tries to configure a parameter marked as deprecated.
|
This will trigger a warning when a user tries to use a Mojo marked as deprecated.
|
||||||
</description>
|
]]></description>
|
||||||
</field>
|
</field>
|
||||||
<field>
|
<field>
|
||||||
<name>configurator</name>
|
<name>configurator</name>
|
||||||
|
@ -422,10 +422,10 @@ under the License.
|
||||||
<name>deprecated</name>
|
<name>deprecated</name>
|
||||||
<version>1.0.0</version>
|
<version>1.0.0</version>
|
||||||
<type>String</type>
|
<type>String</type>
|
||||||
<description>
|
<description><![CDATA[
|
||||||
Specify the version when the parameter was deprecated to the API. Similar to Javadoc deprecated.
|
Description with the reason of parameter deprecation. Similar to Javadoc <code>@deprecated</code>
|
||||||
This will trigger a warning when a user tries to configure a parameter marked as deprecated.
|
This will trigger a warning when a user tries to configure a parameter marked as deprecated.
|
||||||
</description>
|
]]></description>
|
||||||
</field>
|
</field>
|
||||||
</fields>
|
</fields>
|
||||||
</class>
|
</class>
|
||||||
|
|
Loading…
Reference in New Issue