[
http://jira.codehaus.org/browse/MNG-3163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=156180#action_156180
]
Corporate Gadfly commented on MNG-3163:
---------------------------------------
You are using maven 2.0.8. Try it with 2.0.9. I'm using env.COMPUTERNAME to
trigger a profile. Here's a snippet which triggers when run on HOST1:
{code:xml}
<activation>
<property>
<name>env.COMPUTERNAME</name>
<value>HOST1</value>
</property>
</activation>
{code}
> Profile activation based on hostname or IP
> ------------------------------------------
>
> Key: MNG-3163
> URL: http://jira.codehaus.org/browse/MNG-3163
> Project: Maven 2
> Issue Type: Improvement
> Components: Profiles
> Reporter: David J. M. Karlsen
> Priority: Minor
> Fix For: 3.x
>
> Attachments: exampleproject.zip
>
>
> It would be very nice to be able to activate profiles based on hostname[s] or
> IP-address[es].
> Yes, this could be exported from the system as a systemproperty quite easily
> on *NIX with -Dhostname=`hostname` but is a little more tricky on other
> platforms - so why not include it in maven itself?
> It would be even better if it can be expressed with regex'es or the likes.
> WDYT?
--
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