You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ge...@accenture.com on 2007/05/02 11:25:26 UTC

Accessing environment variables with Maven 1.x

Hi,
 
I am trying to access an environment variable from maven.xml, but I am
having no luck. I have the following line in maven.xml:
 
<echo message="${env.PATH}"/>
 
but it prints an empty string in the console.
 
Can someone please help?
 
Thanks,
George


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.

Re: Accessing environment variables with Maven 1.x

Posted by Arnaud HERITIER <ah...@gmail.com>.
Did you setted the properties ?

 <property environment="env"/>

Arnaud



On 02/05/07, george.angeletos@accenture.com <ge...@accenture.com>
wrote:
>
> Hi,
>
> I am trying to access an environment variable from maven.xml, but I am
> having no luck. I have the following line in maven.xml:
>
> <echo message="${env.PATH}"/>
>
> but it prints an empty string in the console.
>
> Can someone please help?
>
> Thanks,
> George
>
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise private information.  If you have
> received it in error, please notify the sender immediately and delete the
> original.  Any other use of the email by you is prohibited.
>