ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyril Bouteille <CyrilBoutei...@yahoo.com>
Subject Re: reading system variables?
Date Tue, 14 Nov 2000 19:09:55 GMT
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