[ 
https://issues.apache.org/jira/browse/MPH-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15580563#comment-15580563
 ] 

Hudson commented on MPH-99:
---------------------------

SUCCESS: Integrated in Jenkins build maven-plugins #7353 (See 
[https://builds.apache.org/job/maven-plugins/7353/])
[MPH-99] Evaluate has no output in quiet mode

Adding the 'output' parameter to the evaluate Mojo. When used, along with an 
expression, the goal will write the result to the specified file instead of 
logging to the console. If no expression is specified, 'output' will be ignored 
(since the plugin will prompt for the expression, it is intended that the 
result is written to the console). The 'quiet' mode is documented to only 
output error messages, so having the result in quiet mode would break the usage 
of this parameter. This closes #17. (gboue: 
[http://svn.apache.org/viewvc/?view=rev&rev=1765191])
* (edit) maven-help-plugin/pom.xml
* (add) maven-help-plugin/src/it/evaluate-with-expression-with-output
* (add) 
maven-help-plugin/src/it/evaluate-with-expression-with-output/invoker.properties
* (add) maven-help-plugin/src/it/evaluate-with-expression-with-output/pom.xml
* (add) 
maven-help-plugin/src/it/evaluate-with-expression-with-output/test.properties
* (add) 
maven-help-plugin/src/it/evaluate-with-expression-with-output/verify.groovy
* (edit) 
maven-help-plugin/src/main/java/org/apache/maven/plugins/help/EvaluateMojo.java
* (add) 
maven-help-plugin/src/test/java/org/apache/maven/plugins/help/EvaluateMojoTest.java
* (add) maven-help-plugin/src/test/resources/unit/evaluate
* (add) 
maven-help-plugin/src/test/resources/unit/evaluate/plugin-config-output.xml
* (add) maven-help-plugin/src/test/resources/unit/evaluate/plugin-config.xml


> Evaluate has no output in quiet mode
> ------------------------------------
>
>                 Key: MPH-99
>                 URL: https://issues.apache.org/jira/browse/MPH-99
>             Project: Maven Help Plugin
>          Issue Type: Bug
>          Components: evaluate
>    Affects Versions: 2.2
>            Reporter: Alexandre Garnier
>            Assignee: Guillaume Boué
>         Attachments: output_on_quiet.patch
>
>
> When using {{help:evaluate}} in normal mode, the evaluation result is lost in 
> a lot of Maven {{[INFO\]}} :
> {code:language=bash}
> $ mvn help:evaluate -Dexpression=project.version
> [INFO] Scanning for projects...
> [INFO]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building myProject 1.0.0
> [INFO] 
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-help-plugin:2.2:evaluate (default-cli) @ myProject ---
> [INFO] No artifact parameter specified, using 'com.test:myProject:pom:1.0.0' 
> as project.
> [INFO]
> 1.0.0
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 1.216s
> [INFO] Finished at: Fri Feb 07 10:32:22 CET 2014
> [INFO] Final Memory: 21M/224M
> [INFO] 
> ------------------------------------------------------------------------
> $ 
> {code}
> I was hoping that launching Maven in quiet mode would avoid all the logs and 
> only display the evaluation result, but there is just no output at all.
> {code:language=bash}
> $ mvn --quiet help:evaluate -Dexpression=project.version
> $ 
> {code}
> In attachment, a patch to use sysout instead of logging for evaluation output.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to