ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark.rus...@pncbank.com
Subject RE: Use properties file and System variables.
Date Thu, 01 May 2003 17:15:03 GMT
You can also look at the loadpropertys task
http://ant.apache.org/manual/CoreTasks/loadproperties.html
and the filterchains
http://ant.apache.org/manual/CoreTypes/filterchain.html

Thursday, May 01, 2003 12:54 PM
To: Ant Users List <user@ant.apache.org>
cc:
From: Matt Benson <gudnabrsam@yahoo.com>
Subject: RE: Use properties file and System variables.



Hmm, I would have figured that to be so obvious it
would never work.  :)

-Matt

--- Michael Remijan <Michael.Remijan@solocup.com>
wrote:
> Actually, I figured it out. Put this in the
> build.xml
>
>    <property environment="env" />
>         <property file="ant.properties"/>
>
> Then put this in the ant.properties file
>
>    foo=${env.FOO}
>
> I've been at a loss with this all morning then
> inpiration hit the moment I clicked the email send
> button.
>
> Mike
>
>
> -----Original Message-----
> From: Matt Benson [mailto:gudnabrsam@yahoo.com]
> Sent: Thursday, May 01, 2003 11:25 AM
> To: Ant Users List
> Subject: Re: Use properties file and System
> variables.
>
>
> It probably won't be as clean as you might hope but
> I
> think you could do this with ant-contrib's
> <propertycopy> task.
>
> -Matt
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
>


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.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