You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "k (JIRA)" <ji...@codehaus.org> on 2007/08/31 16:08:11 UTC
[jira] Commented: (MNG-2848) Environment variables in profile
activation not working
[ http://jira.codehaus.org/browse/MNG-2848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106080 ]
k commented on MNG-2848:
------------------------
Has there been any resolution to this issue? I am currently also trying to access environment variables from within <profile> (be it within profiles.xml and pom.xml) with no success. Outside of <profile>, I can access environment variables just fine, but within <profile>, using the environment variable as an activation property, does not seem to work.
I've been unsuccessful trying to access the variable using the following methods within <profile>:
env.FOO
FOO
${env.FOO}
${FOO}
Any information reguarding this issue would be greatly appreciated... especially since this has been an issue for well over a year now (referring to http://jira.codehaus.org/browse/MNG-2276 ).
Defining the variable via the commandline interface does work however, as stated in the link above.
> Environment variables in profile activation not working
> -------------------------------------------------------
>
> Key: MNG-2848
> URL: http://jira.codehaus.org/browse/MNG-2848
> Project: Maven 2
> Issue Type: Bug
> Components: Profiles
> Affects Versions: 2.0.4, 2.0.5
> Environment: Windows XP Professional, JDK 1.5
> Reporter: Muhammad Alsebaey
> Fix For: Reviewed Pending Version Assignment
>
>
> When using an environment variable as a profile activation variable, it doesnt work, using either env.X or ${env.X} doesnt work.
> I found the same issue on the forums unresolved.
> http://www.nabble.com/profile-activation-based-on-environment-variables-tf2585492s177.html#a7208580
> Basically, the following doesnt work, where FOO is a windows environment variable (like PATH for example) :
> {code:xml}
> <profile>
> <id>haroon-workstation</id>
> <activation>
> <property>
> <name>env.FOO</name>
> <value>foo</value>
> </property>
> </activation>
> .......
> </profile>
> {code}
--
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