ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hadi Abedi <hab...@channelwave.com>
Subject RE: reading system variables?
Date Tue, 14 Nov 2000 19:38:05 GMT
Thanks Cyril, it helped. So Should I assume that any arbitrary system
variables that I define, like MYPATH, I must pass it in as arguments to Ant?
is that true? How about if I am running it on a UNIX platform, do I still
use -DOS? Also, is there a list of predefined properties for Ant?

Thanks -- Hadi.



-----Original Message-----
From: Cyril Bouteille [mailto:CyrilBouteille@yahoo.com]
Sent: Tuesday, November 14, 2000 11:10 AM
To: ant-user@jakarta.apache.org
Subject: Re: reading system variables?


Hadi,

> Is there a way to read the System variables like PATH or CLASSPATH with
Ant?

You can access the CLASSPATH variable using ${java.class.path} in Ant.

For the PATH, you can start ant with -Dos.path=$PATH and access it in
Ant using ${os.path}.

Hope it helps,

Mime
View raw message