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:10 UTC
[maven-help-plugin] 03/03: [MPH-132] Drop parameter 'medium'
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 cf84fc3c8b5927a29c3931b3382afe30ccacaaa9
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sun Mar 4 13:29:49 2018 +0100
[MPH-132] Drop parameter 'medium'
---
.../org/apache/maven/plugins/help/DescribeMojo.java | 20 ++------------------
src/site/apt/examples/describe-configuration.apt | 7 ++-----
2 files changed, 4 insertions(+), 23 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 13f3312..b962b98 100644
--- a/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
@@ -196,14 +196,6 @@ public class DescribeMojo
private boolean detail;
/**
- * This flag specifies that a medium list of goal (Mojo) information should be given.
- *
- * @since 2.0.2
- */
- @org.apache.maven.plugins.annotations.Parameter( property = "medium", defaultValue = "true" )
- private boolean medium;
-
- /**
* This flag specifies that a minimal list of goal (Mojo) information should be given.
*
* @since 2.1
@@ -472,7 +464,7 @@ public class DescribeMojo
return;
}
- if ( ( detail || medium ) && !minimal )
+ if ( !minimal )
{
append( buffer, "This plugin has " + mojos.size() + " goal" + ( mojos.size() > 1 ? "s" : "" ) + ":", 0 );
buffer.append( LS );
@@ -482,15 +474,7 @@ public class DescribeMojo
for ( MojoDescriptor md : mojos )
{
- if ( detail )
- {
- describeMojoGuts( md, buffer, true );
- }
- else
- {
- describeMojoGuts( md, buffer, false );
- }
-
+ describeMojoGuts( md, buffer, detail );
buffer.append( LS );
}
}
diff --git a/src/site/apt/examples/describe-configuration.apt b/src/site/apt/examples/describe-configuration.apt
index 918a880..9887e2f 100644
--- a/src/site/apt/examples/describe-configuration.apt
+++ b/src/site/apt/examples/describe-configuration.apt
@@ -147,7 +147,7 @@ For more information, run 'mvn help:describe [...] -Ddetail'
...
+-----+
-* The <<<minimal>>>, <<<medium>>> and <<<detail>>> Parameters
+* The <<<minimal>>>, and <<<detail>>> Parameters
If you want to display less or more detailed information, you can use the <<<minimal>>>, or <<<detail>>>
parameters.
@@ -173,7 +173,7 @@ For more information, run 'mvn help:describe [...] -Ddetail'
...
+-----+
- The <<<medium>>> parameter is the default since 2.1 and adds a list with the goals of the plugin and their
+ If you don't provide a paremeter a list is added with the mojos of the plugin and their
descriptions:
+-----+
@@ -249,9 +249,6 @@ For more information, run 'mvn help:describe [...] -Ddetail'
# 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
- 2.1 of this Help plugin.
-
* The <<<output>>> Parameter
This <<<describe>>> goal can use the optional <<<output>>> parameter to
--
To stop receiving notification emails like this one, please contact
michaelo@apache.org.