build.properties question: how get environment variable values?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

build.properties question: how get environment variable values?

Mark D. Hansen
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

Brett Porter
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 <[hidden email]> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]