ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Accessing System environment variables.
Date Sat, 03 Mar 2001 00:47:11 GMT
I'll be denying myself :)

I was still pointing to a 1.2 doc.

-----Original Message-----
From: []
Sent: Friday, March 02, 2001 7:23 PM
Subject: RE: Accessing System environment variables.

Hmmm... it seems there is no mention of an environment attribute in the 1.3
docs (binary release).

Can someone else confirm or deny this ?



-----Original Message-----
From: Peter Donald []
Sent: Friday, March 02, 2001 7:11 PM
Cc: Ant-User
Subject: Re: Accessing System environment variables.

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 ;)



| "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               |

View raw message