[
http://jira.codehaus.org/browse/MNG-4471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bentmann closed MNG-4471.
----------------------------------
Resolution: Not A Bug
The fields {{<exists>}} and {{<missing>}} can be interpolated with environment
variables and system properties. You can't use properties from the POM itself
as their effective values are subject to profile activation/injection, i.e. the
POM construction would potentially run into cycles.
> Profile activation fails if <file> contains variables
> ------------------------------------------------------
>
> Key: MNG-4471
> URL: http://jira.codehaus.org/browse/MNG-4471
> Project: Maven 2
> Issue Type: Bug
> Components: Profiles
> Affects Versions: 3.0-alpha-5
> Environment: Mac OS X 10.6.2
> Reporter: j4zzcat
> Assignee: Benjamin Bentmann
> Attachments: pom.xml, testcase.xml, testcase2.xml, testcase2.xml
>
>
> See the attached testcase.
> The profile is not activated when <file> has variables in it:
> <file><exists>${env.M2_HOME}/bin/mvn</exists></file>
> But when the path is absolute, it works:
> <file><exists>/my/maven/home/bin/mvn</exists></file>
--
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