ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabian Mörchen <Fabian.Moerc...@math.uni-giessen.de>
Subject Re: Using System Environment variables
Date Thu, 03 May 2001 16:12:18 GMT
hi

haven't tried on win, but this work on linux:

<property environment="env"/>

${env.JAVA_HOME}

bye
fabian


Perry Hunchak wrote:
> 
> Is there any way to use the system environment variables (for windows)
> in the build.xml file ant uses?
> 
> I currently use specify my tomcat home by pointing to the file system
> path
> 
> example:
>   <property name="tomcat.home" value="d:/java/tomcat3.2.1"/>
> 
> But I'd like to just use the system environment variable so I could use
> this on different servers
> 
> example:
>   <property name="tomcat.home" value="Tomcat_Home"/>
> 
> Is there any way to do this?

-- 
Fabian Mörchen
fabian@mybytes.de
http://www.mybytes.de

Mime
View raw message