You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jessie Crowe (JIRA)" <ji...@codehaus.org> on 2008/12/01 21:18:19 UTC

[jira] Commented: (MNG-3163) Profile activation based on hostname or IP

    [ http://jira.codehaus.org/browse/MNG-3163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=156072#action_156072 ] 

Jessie Crowe commented on MNG-3163:
-----------------------------------

The maven guide seems to imply this already works here:

http://maven.apache.org/guides/introduction/introduction-to-profiles.html

I cannot seem to get it to work.  I tried

<activation><property><name>env.COMPUTERNAME</name></property> on a windows box, but the profile did not activate.


> 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
>
>
> 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