[ 
https://issues.apache.org/jira/browse/MPH-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karl Heinz Marbaise updated MPH-144:
------------------------------------
    Description: 
Currently if you use {{mvn help:evaluate -Dexpression=project.groupId}} there 
are printed out some lines like {{[INFO] ...]]}}. If you use {{mvn 
help:evaluate -Dexpression=project.groupId -q}} you won't get anything printed 
out at all.

It would be a good idea to have an output via a supplemental parameter like 
this:
{{mvn help:evaluate -Dexpression=project.groupId -DforceStdout=true -q}} to get 
printed out the information like this only:
{code}
0.2.0-SNAPSHOT
{code}
this would give the opportunity to use the call within scripts directory 
without filtering out things lie {{[INFO]...}} etc. like this:

{{RESULT=$(mvn help:evaluate -Dexpression=project.groupId -DforceStdout=true 
-q)}}


  was:
Currently if you  use {{mvn help:evaluate -Dexpression=project.groupId}} there 
will be some lines generated with {{[INFO] ...]]}} If you use {{mvn 
help:evaluate -Dexpression=project.groupId -q}} you won't get anything printed 
out.

It would be a good idea to have an output via a supplemental parameter like 
this:
{{mvn help:evaluate -Dexpression=project.groupId -Dstdout=true -q}} to get 
printed out the information like this (:
{code}
0.2.0-SNAPSHOT
{code}
this would give the opportunity to use the call within scripts etc.
Also might be possible in one go:

{{mvn help:evaluate -Dexpression=project.groupId -DoutputFile=result.txt -q}}

to write the expression result into a file.

Or the question is if it would be possible/good idea to print out the resulting 
expression anyway (ignoring -q for only {{[INFO]...}} parts)
{{mvn help:evaluate -Dexpression=project.groupId -q}}



> mvn help:evaluate -Dexpression=project.groupId Can't be used in scripts.
> ------------------------------------------------------------------------
>
>                 Key: MPH-144
>                 URL: https://issues.apache.org/jira/browse/MPH-144
>             Project: Maven Help Plugin
>          Issue Type: New Feature
>            Reporter: Karl Heinz Marbaise
>            Assignee: Karl Heinz Marbaise
>            Priority: Minor
>
> Currently if you use {{mvn help:evaluate -Dexpression=project.groupId}} there 
> are printed out some lines like {{[INFO] ...]]}}. If you use {{mvn 
> help:evaluate -Dexpression=project.groupId -q}} you won't get anything 
> printed out at all.
> It would be a good idea to have an output via a supplemental parameter like 
> this:
> {{mvn help:evaluate -Dexpression=project.groupId -DforceStdout=true -q}} to 
> get printed out the information like this only:
> {code}
> 0.2.0-SNAPSHOT
> {code}
> this would give the opportunity to use the call within scripts directory 
> without filtering out things lie {{[INFO]...}} etc. like this:
> {{RESULT=$(mvn help:evaluate -Dexpression=project.groupId -DforceStdout=true 
> -q)}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to