ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bendfelt, Tim (MED, nVisia, GEMS-IT)" <Timothy.Bendf...@med.ge.com>
Subject RE: Environment variables
Date Wed, 10 Apr 2002 21:06:59 GMT
you can access these variables directly by setting the environment
property:

  <property environment="env"/>
  <property name="ora.home" value="${env.ORACLE_HOME}" />

--Tim



> -----Original Message-----
> From: Sarkar, Sudipta [mailto:Sudipta.Sarkar@workscape.com]
> Sent: Wednesday, April 10, 2002 3:54 PM
> To: ant-user@jakarta.apache.org
> Subject: Environment variables
> 
> 
> Hi,
>    How do  I access an environment variable in my build.xml file. e.g
>  I have an env variable - ORACLE_HOME 
>  I want to have something like
>  
>   <target name=init>
>   	<property name="ora.home" value="ORACLE_HOME"    /> 
> </target>
> Here I want to set the value of the property ora.home to 
> environment variable ORACLE_HOME.
> 
> I am using windows 2000. Will the syntax be different on UNIX ?
> 
> Thanks
> Sudipta Sarkar
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message