You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2018/03/06 13:15:09 UTC
[maven-help-plugin] 02/03: [MPH-133] Drop deprecated alias 'full'
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git
commit acf04d512752798938dc824ef51bb4d1e3cd587f
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun Mar 4 15:16:49 2018 +0100
[MPH-133] Drop deprecated alias 'full'
---
.../apache/maven/plugins/help/DescribeMojo.java | 25 ++--------------------
src/site/apt/examples/describe-configuration.apt | 8 +++----
2 files changed, 6 insertions(+), 27 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java b/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
index 9932470..13f3312 100644
--- a/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
@@ -190,9 +190,9 @@ public class DescribeMojo
/**
* This flag specifies that a detailed (verbose) list of goal (Mojo) information should be given.
*
- * @since 2.1, was <code>full</code> in 2.0.x
+ * @since 2.1
*/
- @org.apache.maven.plugins.annotations.Parameter( property = "detail", defaultValue = "false", alias = "full" )
+ @org.apache.maven.plugins.annotations.Parameter( property = "detail", defaultValue = "false" )
private boolean detail;
/**
@@ -231,8 +231,6 @@ public class DescribeMojo
public void execute()
throws MojoExecutionException, MojoFailureException
{
- validateParameters();
-
StringBuilder descriptionBuffer = new StringBuilder();
boolean describePlugin = true;
@@ -269,25 +267,6 @@ public class DescribeMojo
// ----------------------------------------------------------------------
/**
- * Validate parameters
- */
- private void validateParameters()
- {
- // support legacy parameter "full"
-
- if ( !detail && session.getUserProperties().get( "full" ) != null )
- {
- String full = session.getUserProperties().getProperty( "full" );
- detail = Boolean.parseBoolean( full );
- }
-
- if ( detail || minimal )
- {
- medium = false;
- }
- }
-
- /**
* Method to write the Mojo description into the output file
*
* @param descriptionBuffer contains the description to be written to the file
diff --git a/src/site/apt/examples/describe-configuration.apt b/src/site/apt/examples/describe-configuration.apt
index 92cb6e1..918a880 100644
--- a/src/site/apt/examples/describe-configuration.apt
+++ b/src/site/apt/examples/describe-configuration.apt
@@ -147,9 +147,9 @@ For more information, run 'mvn help:describe [...] -Ddetail'
...
+-----+
-* The <<<minimal>>>, <<<medium>>> and <<<full>>> Parameters
+* The <<<minimal>>>, <<<medium>>> and <<<detail>>> Parameters
- If you want to display less or more detailed information, you can use the <<<minimal>>>, <<<medium>>> or <<<full>>>
+ If you want to display less or more detailed information, you can use the <<<minimal>>>, or <<<detail>>>
parameters.
The <<<minimal>>> parameter adds a minimal list of information:
@@ -242,11 +242,11 @@ For more information, run 'mvn help:describe [...] -Ddetail'
...
+-----+
- The <<<full>>> parameter also displays information about the goal's implementation, their parameters and component
+ The <<<detail>>> parameter also displays information about the goal's implementation, their parameters and component
requirements, among others.
+-----+
-# mvn help:describe -Dplugin=help -Dfull=true
+# mvn help:describe -Dplugin=help -Ddetail=true
+-----+
<<Note>>: The <<<medium>>> parameter was added in version 2.0.2 and the <<<minimal>>> parameter was added in version
--
To stop receiving notification emails like this one, please contact
michaelo@apache.org.