Hi,

Different solutions:

   ...
   <!-- Standard Apache ANT task to bind the environment 
     variables to a prefix 'env' -->
   <property environment="env"/>
   
   <!-- solution 1 -->
   <echo>JAVA_HOME : ${env.JAVA_HOME}</echo>
   ...
   <!-- just for your information -->
   <echo>Maven variables : ${context.getVariables()}</echo>
   <!-- not the same as JAVA_HOME -->
   <echo>Maven JRE : ${context.getVariable("java.home")}</echo>

   <!-- solution 2 :  can only be done because '... property 
   environment="env" ...' called -->
   <echo>Maven JAVA_HOME : ${context.getVariable("env.JAVA_HOME")}</echo>
   ...

Regards,
Davy Toch

On Wednesday 28 September 2005 22:07, Hogeweg, Erwin (GE Infrastructure) 
wrote:
> Hi,
>
> I need a reference to JAVA_HOME in my jelly script but the tag below
> doesn't seem to work. All I get is "JAVA_HOME=" (w/o the quotes of course).
>
>     <ant:echo message="JAVA_HOME=${env.JAVA_HOME}"/>
>
> So I assume there is a different way to do this but I can not find it.
>
> Any help is highly appreciated.
>
> Thanks,
>
> Erwin
>
> ---------------------------------------------------------------------
> 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