Here's an issue on this topic: http://jira.codehaus.org/browse/MNG-1525.

The ability to reference environment variables appears to have been added to plexus-utils, but I haven't had the time to check it out yet. I'm not sure how environment variables can be referenced, probably either ${env.BLAH} or ${envars.BLAH}.

Richard Allen



Ralph Pöllath wrote:

On 05.01.2006, at 22:31, Adam Altemus wrote:

Greetings, my name is Adam Altemus.  I am a computer science student @
Indiana University of PA. and am doing an internship.  I read in a

thread that you said that you can acess environment variables in the pom.xml
from the settings.xml.   Could you explain to me how this can be done?


AFAIK, you can use java system properties like ${user.home} etc. (see http://java.sun.com/docs/books/tutorial/essential/system/ properties.html ), but not your operating system's environment variables (like $CATALINA_HOME, etc).

There has been quite some discussion about this, so search the archives if you want to know why this is so (build portability, IIRC).

Cheers,
-Ralph.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to