[jira] [Comment Edited] (MPH-99) Evaluate has no output in quiet mode

2016-10-17 Thread Michael Osipov (JIRA)

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

Michael Osipov edited comment on MPH-99 at 10/17/16 6:19 PM:
-

I fully agree on this but this is not fully true. {{slf4j-simple}} does not do 
this. It writes all type of log messages to [one 
stream|https://github.com/qos-ch/slf4j/blob/master/slf4j-simple/src/main/java/org/slf4j/impl/SimpleLogger.java#L205]
 and not to {{stdout}} *and* {{stderr}}.


was (Author: michael-o):
I fully agree on this but this is not fully true. {{slf4j-simple}} does not do 
this. It writes all type of log messages to [one 
stream|https://github.com/qos-ch/slf4j/blob/master/slf4j-simple/src/main/java/org/slf4j/impl/SimpleLogger.java#L205]
 and not to {{stdout}} **and** {{stderr}}.

> 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é
> Fix For: 2.2.1
>
> 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)


[jira] [Commented] (MPH-99) Evaluate has no output in quiet mode

2016-10-17 Thread Michael Osipov (JIRA)

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

Michael Osipov commented on MPH-99:
---

I fully agree on this but this is not fully true. {{slf4j-simple}} does not do 
this. It writes all type of log messages to [one 
stream|https://github.com/qos-ch/slf4j/blob/master/slf4j-simple/src/main/java/org/slf4j/impl/SimpleLogger.java#L205]
 and not to {{stdout}} **and** {{stderr}}.

> 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é
> Fix For: 2.2.1
>
> 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)


[jira] [Commented] (MPH-99) Evaluate has no output in quiet mode

2016-10-17 Thread JIRA

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

Guillaume Boué commented on MPH-99:
---

In the quiet mode, interesting things are defined as the errors... and there 
are possibly scripts that rely on this definition, reading {{stderr}} in quiet 
mode to get only the errors. This parameter applies to Maven as a whole, not 
just the Help Plugin, and I'm not sure having a new specific parameter for a 
plugin, like a helpQuiet that would be quiet except for the output of the Help 
Plugin, impacting Maven itself is a good idea.

It may be a bit clunky, but this is really intended for scripts that can easily 
deal with this.

> 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é
> Fix For: 2.2.1
>
> 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)


[jira] [Comment Edited] (MPH-99) Evaluate has no output in quiet mode

2016-10-17 Thread Michael Osipov (JIRA)

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

Michael Osipov edited comment on MPH-99 at 10/17/16 2:06 PM:
-

The definition of quiet in Maven is to output errors only. So far, [~gboue] has 
even fixed another issue implicitly.


was (Author: michael-o):
The definition of quiet in Maven is to output errors only.

> 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é
> Fix For: 2.2.1
>
> 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)


[jira] [Commented] (MPH-99) Evaluate has no output in quiet mode

2016-10-17 Thread Michael Osipov (JIRA)

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

Michael Osipov commented on MPH-99:
---

The definition of quiet in Maven is to output errors only.

> 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é
> Fix For: 2.2.1
>
> 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)


[jira] [Commented] (MPH-99) Evaluate has no output in quiet mode

2016-10-17 Thread Michael Osipov (JIRA)

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

Michael Osipov commented on MPH-99:
---

This is probably an interpretation issue of quiet. How far goes quiet?

> 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é
> Fix For: 2.2.1
>
> 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)


[jira] [Commented] (MPH-99) Evaluate has no output in quiet mode

2016-10-17 Thread Jakub Bochenski (JIRA)

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

Jakub Bochenski commented on MPH-99:


+1 to what [~jglick] wrote.. what's the use of quiet mode then if you can't 
restrict the output to only interesting things?

> 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é
> Fix For: 2.2.1
>
> 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)


[jira] [Commented] (MPH-99) Evaluate has no output in quiet mode

2016-10-17 Thread Jesse Glick (JIRA)

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

Jesse Glick commented on MPH-99:


Awkward compared to the original request—a script would be forced to create, 
cat, and then delete a temporary file, unlike the Unix convention of using 
{{stdout}} and {{stderr}}—but better than nothing.

> 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é
> Fix For: 2.2.1
>
> 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)