ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: Accessing System environment variables.
Date Sat, 03 Mar 2001 00:10:49 GMT
At 10:56  2/3/01 -0000, Stefán F. Stefánsson wrote:
>Sorry for the repost but I'm afraid that some people might have been
>scared off with the subject of the other one (was 'Running
>EmbeddedTomcat through ant doesn't work').
>
>The basic question is if there is a way to access system variables (like
>JAVA_HOME) from the ant buildfile.  I need to get JAVA_HOME so I can
>find where 'tools.jar' resides so I can start tomcat.

Have a look at property task (specifically the environment attribute) in
the docs which should help you ;)

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*


Mime
View raw message