You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Mark D. Hansen" <kh...@yahoo.com> on 2005/05/11 17:43:57 UTC

build.properties question: how get environment variable values?

I've got this in my build.properties (running in linux):

was.home=$WAS_HOME

It does not give the desired result.  Instead of setting was.home to 'opt/IBM/WebSphere/AppServer', it sets was.home to '$WAS_HOME'.

How do I get the value of a shell environment variable inside of maven?

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: build.properties question: how get environment variable values?

Posted by Brett Porter <br...@gmail.com>.
Ant has a way to retrieve them, which you could do in maven.xml, but
I'd suggest avoiding the need wherever possible.

Cheers,
Brett

On 5/12/05, Mark D. Hansen <kh...@yahoo.com> wrote:
> I've got this in my build.properties (running in linux):
> 
> was.home=$WAS_HOME
> 
> It does not give the desired result.  Instead of setting was.home to 'opt/IBM/WebSphere/AppServer', it sets was.home to '$WAS_HOME'.
> 
> How do I get the value of a shell environment variable inside of maven?
> 
> Thanks!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org