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;
|
||||
|
||||
/**
|
||||
* Specify the version when the Mojo was deprecated to the API. Similar to Javadoc deprecated. This will trigger a
|
||||
* warning when a user tries to configure a parameter marked as deprecated.
|
||||
* Description with reason of Mojo deprecation. Similar to Javadoc {@code @deprecated}.
|
||||
* This will trigger a warning when a user tries to use a Mojo marked as 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()
|
||||
{
|
||||
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -289,10 +289,10 @@ under the License.
|
|||
<name>deprecated</name>
|
||||
<version>1.0.0</version>
|
||||
<type>String</type>
|
||||
<description>
|
||||
Specify the version when the Mojo was deprecated to the API. Similar to Javadoc deprecated. This will
|
||||
trigger a warning when a user tries to configure a parameter marked as deprecated.
|
||||
</description>
|
||||
<description><![CDATA[
|
||||
Description with the reason of Mojo deprecation. Similar to Javadoc <code>@deprecated</code>
|
||||
This will trigger a warning when a user tries to use a Mojo marked as deprecated.
|
||||
]]></description>
|
||||
</field>
|
||||
<field>
|
||||
<name>configurator</name>
|
||||
|
@ -422,10 +422,10 @@ under the License.
|
|||
<name>deprecated</name>
|
||||
<version>1.0.0</version>
|
||||
<type>String</type>
|
||||
<description>
|
||||
Specify the version when the parameter was deprecated to the API. Similar to Javadoc deprecated.
|
||||
<description><![CDATA[
|
||||
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.
|
||||
</description>
|
||||
]]></description>
|
||||
</field>
|
||||
</fields>
|
||||
</class>
|
||||
|
|
Loading…
Reference in New Issue