ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: env variables from ant
Date Tue, 24 Oct 2000 22:44:11 GMT
--- Pete O'Donnell <podonnell@doradosoftware.com> wrote:
> how can ant build files access environment / system variables?  (i.e.
> $CLASSPATH)

By passing them in on the ant command-line -- either directly:

  $ ant -Dmy.cp=$MYCP

or via the ant wrapper-script:

$JAVACMD -classpath $LOCALCLASSPATH -Dant.home=ANT_HOME -Dmy.cp=$MYCP ...

(Is this not in the FAQ? -- or is that beastie still down?)

Diane 

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/

Mime
View raw message