[jira] Commented: (MPH-71) call help:evaluate in batch mode

2010-03-21 Thread Brett Porter (JIRA)

[ 
http://jira.codehaus.org/browse/MPH-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=214757#action_214757
 ] 

Brett Porter commented on MPH-71:
-

Note that you must omit the ${...} on the expression as Maven would recursively 
resolve it for you. While we probably could have just output that as the value 
it seemed more risky to me, and it is also difficult to escape those in a shell 
environment, so we instead go through the normal resolution of the expression 
after surrounding the parameter with ${...}.

> call help:evaluate in batch mode
> 
>
> Key: MPH-71
> URL: http://jira.codehaus.org/browse/MPH-71
> Project: Maven 2.x Help Plugin
>  Issue Type: Wish
>Affects Versions: 2.1
>Reporter: Galak
>Assignee: Brett Porter
>Priority: Minor
> Fix For: 2.1.1
>
>
> The help:evaluate goal is designed to be called in interactive mode.
> I would like to call this goal in batch mode, passing the expression to 
> evaluate in a property (on the command line).
> The final purpose is to evaluate predefined expressions inside a script 
> (unfortunately, the script is a batch file in my case...)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MPH-71) call help:evaluate in batch mode

2009-12-13 Thread Jon Lorusso (JIRA)

[ 
http://jira.codehaus.org/browse/MPH-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=202447#action_202447
 ] 

Jon Lorusso commented on MPH-71:


I concur with previous comments. 

I need a way to do something like this:

mvn help:evaluate -Dexpression=project.version

So that I can get at the pom's version, without (as has been said above) 
parsing the pom myself. I am fairly surprised this type of functionality does 
not exist in this or any other of the many many plugins out there.

> call help:evaluate in batch mode
> 
>
> Key: MPH-71
> URL: http://jira.codehaus.org/browse/MPH-71
> Project: Maven 2.x Help Plugin
>  Issue Type: Wish
>Affects Versions: 2.1
>Reporter: Galak
>Priority: Minor
>
> The help:evaluate goal is designed to be called in interactive mode.
> I would like to call this goal in batch mode, passing the expression to 
> evaluate in a property (on the command line).
> The final purpose is to evaluate predefined expressions inside a script 
> (unfortunately, the script is a batch file in my case...)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MPH-71) call help:evaluate in batch mode

2009-12-02 Thread Galak (JIRA)

[ 
http://jira.codehaus.org/browse/MPH-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=200269#action_200269
 ] 

Galak commented on MPH-71:
--

Moreover: when I want to evaluate a property which is inherited from a parent 
pom, parsing the project pom is inefficient... 
And I do not want to reproduce the Maven pom inheritance system :-)

> call help:evaluate in batch mode
> 
>
> Key: MPH-71
> URL: http://jira.codehaus.org/browse/MPH-71
> Project: Maven 2.x Help Plugin
>  Issue Type: Wish
>Affects Versions: 2.1
>Reporter: Galak
>Priority: Minor
>
> The help:evaluate goal is designed to be called in interactive mode.
> I would like to call this goal in batch mode, passing the expression to 
> evaluate in a property (on the command line).
> The final purpose is to evaluate predefined expressions inside a script 
> (unfortunately, the script is a batch file in my case...)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MPH-71) call help:evaluate in batch mode

2009-12-02 Thread Costin Caraivan (JIRA)

[ 
http://jira.codehaus.org/browse/MPH-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=200267#action_200267
 ] 

Costin Caraivan commented on MPH-71:


This would definitely be useful when integrating Maven with other systems. This 
way these systems can extract information from Maven, in a controlled manner. 
Otherwise the pom must be parsed, which can lead to all sorts of nasty things :)

> call help:evaluate in batch mode
> 
>
> Key: MPH-71
> URL: http://jira.codehaus.org/browse/MPH-71
> Project: Maven 2.x Help Plugin
>  Issue Type: Wish
>Affects Versions: 2.1
>Reporter: Galak
>Priority: Minor
>
> The help:evaluate goal is designed to be called in interactive mode.
> I would like to call this goal in batch mode, passing the expression to 
> evaluate in a property (on the command line).
> The final purpose is to evaluate predefined expressions inside a script 
> (unfortunately, the script is a batch file in my case...)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira