You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Hadi Abedi <ha...@channelwave.com> on 2000/11/14 19:40:30 UTC
reading system variables?
Hi,
Is there a way to read the System variables like PATH or CLASSPATH with Ant?
Thanks -- Hadi
Re: reading system variables?
Posted by Cyril Bouteille <Cy...@yahoo.com>.
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,