You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Pete O'Donnell <po...@doradosoftware.com> on 2000/10/25 00:36:31 UTC

env variables from ant

how can ant build files access environment / system variables?  (i.e.
$CLASSPATH)

thanks for any help,

-pete o'donnell
software developer
dorado software
folsom, ca



RE: env variables from ant

Posted by Chris Todd <ch...@christophertodd.com>.
Pete-

RE: env variables from ant

Posted by Conor MacNeill <co...@m64.com>.
Pete,

As others have said, you need to pass environment variables to ant on
the command line. Nevertheless, there are a number of standard system
properties which are available to ant, including the classpath. Try

      <echo message="Classpath is ${java.class.path}"/>

to see the value.

If you run ant -debug (or ant -verbose in ant 1.1) you will see the
various properties being set.

Conor


> -----Original Message-----
> From: Pete O'Donnell [mailto:podonnell@doradosoftware.com]
> Sent: Wednesday, 25 October 2000 9:37
> To: ant-user@jakarta.apache.org
> Subject: env variables from ant
>
>
> how can ant build files access environment / system variables?  (i.e.
> $CLASSPATH)
>
> thanks for any help,
>
> -pete o'donnell
> software developer
> dorado software
> folsom, ca
>
>