ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ckn...@onebox.com
Subject RE: Re: Access to OS environment variables?
Date Fri, 16 Dec 2005 21:16:00 GMT
Thanks. It helps to know where to look.
-- 
Charles Knell
cknell@onebox.com - email



-----Original Message-----
From:     Matt Benson <gudnabrsam@yahoo.com>
Sent:     Fri, 16 Dec 2005 13:13:06 -0800 (PST)
To:       Ant Users List <user@ant.apache.org>
Subject:  Re: Access to OS environment variables?

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




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


Mime
View raw message