ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hadi Abedi <>
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 []
Sent: Tuesday, November 14, 2000 11:10 AM
Subject: Re: reading system variables?


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

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,

View raw message