[
http://jira.codehaus.org/browse/MNG-3940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159079#action_159079
]
Wendy Smoak commented on MNG-3940:
----------------------------------
Thanks, Benjamin. :)
I was testing this by adding
<properties><mypath>${env.PATH}</mypath></properties> to a pom and then running
mvn help:effective-pom.
On Linux and OS X, the effective pom shows all the directories in the PATH
environment variable. On Windows, it remains literally ${env.PATH}.
However, ${env.M2_HOME} is expanded on all three OSs, so it's not _all_
environment variables on Windows.
> Interpolation of environment variables fails on Windows
> -------------------------------------------------------
>
> Key: MNG-3940
> URL: http://jira.codehaus.org/browse/MNG-3940
> Project: Maven 2
> Issue Type: Bug
> Components: Inheritance and Interpolation
> Affects Versions: 2.0.9, 2.1.0-M1, 3.0-alpha-1
> Reporter: Benjamin Bentmann
> Priority: Minor
>
> {noformat}
> 00:47 wsmoak I can't get ${env.PATH} to be evaluated in the pom... but only
> on Windows. Any ideas?
> 00:47 wsmoak echo %PATH% produces the right stuff. and it works fine with
> Maven 2.0.9 on OS X or linux
> {noformat}
--
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