ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Access to OS environment variables?
Date Fri, 16 Dec 2005 21:13:06 GMT
--- cknell@onebox.com wrote:

> Am I just looking in the wrong place, or is there no
> way to read or capture the value of an operating
> system environment variable from within an ant build
> file. For example. I would like to use the fop task,
> but in order to do so I must create a property named
> "fop.dir" and  enter the path to my fop .jar files.
> Since I already have an FOP_HOME environment
> variable, I'd like to extract the value of that from
> the OS and place it "value" attribute of the
> aforementioned property element.

Look at the property task:

http://ant.apache.org/manual/CoreTasks/property.html

Specifically, the environment attribute.

HTH,
Matt



> 
> -- 
> Charles Knell
> cknell@onebox.com - email
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message