You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gb...@apache.org on 2018/03/03 18:00:36 UTC
[maven-help-plugin] branch MPH-121 created (now a8c481e)
This is an automated email from the ASF dual-hosted git repository.
gboue pushed a change to branch MPH-121
in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git.
at a8c481e [MPH-121] incorrect text in help:describe for cmd
This branch includes the following new commits:
new a8c481e [MPH-121] incorrect text in help:describe for cmd
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
--
To stop receiving notification emails like this one, please contact
gboue@apache.org.
[maven-help-plugin] 01/01: [MPH-121] incorrect text in
help:describe for cmd
Posted by gb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
gboue pushed a commit to branch MPH-121
in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git
commit a8c481eff8d578bca1e049052d7838483fd3f351
Author: Guillaume Boué <gb...@apache.org>
AuthorDate: Sat Mar 3 18:59:16 2018 +0100
[MPH-121] incorrect text in help:describe for cmd
Clarification of the wording used to describe a phase that is part of a
lifecycle.
---
src/it/describe-cmd/verify.groovy | 2 +-
src/main/java/org/apache/maven/plugins/help/DescribeMojo.java | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/it/describe-cmd/verify.groovy b/src/it/describe-cmd/verify.groovy
index e4a39b8..5a044f1 100644
--- a/src/it/describe-cmd/verify.groovy
+++ b/src/it/describe-cmd/verify.groovy
@@ -26,6 +26,6 @@ assert result.contains("'deploy' is a phase corresponding to this plugin:" + ls
result = new File(basedir, 'result-site.txt').text;
-assert result.contains("'site' is a lifecycle with the following phases:")
+assert result.contains("'site' is a phase within the 'site' lifecycle, which has the following phases:")
return true;
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 e7e18b6..61ca458 100644
--- a/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
@@ -803,7 +803,8 @@ public class DescribeMojo
else
{
descriptionBuffer.append( "'" ).append( cmd );
- descriptionBuffer.append( "' is a lifecycle with the following phases: " );
+ descriptionBuffer.append( "' is a phase within the '" ).append( lifecycle.getId() );
+ descriptionBuffer.append( "' lifecycle, which has the following phases: " );
descriptionBuffer.append( LS );
for ( String key : phases )
--
To stop receiving notification emails like this one, please contact
gboue@apache.org.