ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@apache.org>
Subject Re: passing OS path variables to Ant
Date Mon, 26 Aug 2002 10:28:07 GMT
On Mon, 26 Aug 2002 20:23, Jason Novotny wrote:
> Hi,
>
>     I'm trying to pass PATH variables like TOMCAT_HOME and JAVA_HOME,
> etc to my build.xml script. Currently, I have a Perl wrapper script that
> gets these variables and sets them by invoking Ant like:
> "java -classpath $CLASSPATH org.apache.tools.ant.Main
> -Dtomcat.home=$TOMCAT_HOME"
>
> It would be much better if the build.xml script could get these vars for
> me. Any ideas?

Have a look at the environment attribute for <property /> task ;)

-- 
Cheers,

Peter Donald
*------------------------------------------------*
| The student who is never required to do what   |
|  he cannot do never does what he can do.       |
|                       - John Stuart Mill       |
*------------------------------------------------*


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message