ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyril Bouteille <>
Subject Re: reading system variables?
Date Tue, 14 Nov 2000 19:09:55 GMT

> 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,
View raw message