ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Goodnough <agoo...@yahoo.com>
Subject Re: Explicit values only in properties file?
Date Mon, 15 Jan 2001 17:33:50 GMT
Thanks Colin and Jason - this is what I wanted to do - I
guess I just assumed that it wouldn't work.  Thanks.

Andy

--- Jason Rosenberg <jason@squaretrade.com> wrote:
> Andy,
> 
> I am not sure I understand exactly what you want to do,
> but you certainly can reference previously defined
> properties
> within a properties file, and preserve the same ordering
> that is required for your scripting to work, since, after
> all, we are all scripting here.
> 
> So, within a single properties file, you can have:
> 
> app.src.dir=src
> descriptors.dir=${app.src.dir}/descriptors
> 
> And it will do the right thing.
> 
> Jason
> 
> ----- Original Message ----- 
> From: "Andrew Goodnough" <agoodno@yahoo.com>
> To: "Ant User List" <ant-user@jakarta.apache.org>
> Sent: Monday, January 15, 2001 9:51 AM
> Subject: Explicit values only in properties file?
> 
> 
> > I have alot of properties defined in my buildfile that
> > depend on properties defined before it.  This is normal
> > scripting stuff like:
> > 
> > <!-- descriptor.dir depends on the value of app.src.dir
> -->
> >     <property name="app.src.dir" value="src"/>
> >     <property name="descriptors.dir"
> > value="${app.src.dir}/descriptors"/>
> > 
> > I want to use a properties file instead but it seems
> that
> > I'd have to define them like this:
> > 
> > app.src.dir=src
> > descriptors.dir=src/descriptors
> > 
> > Is there any way to use variables in properties files? 
> -It
> > seems the answer is "no" but is anybody doing anything
> else
> > creative along these lines that combines the ability to
> use
> > a properties file AND not have to explicitly path
> > properties?
> > 
> > 
> > Andy
> > 
> > 
> > =====
> > 
> > Andrew Goodnough
> > agoodno@yahoo.com
> > 
> > How do you know you've come far enough, until you've
> gone too far?
> > 
> > - Sheldon Kopp
> > 
> >  
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Get email at your own domain with Yahoo! Mail. 
> > http://personal.mail.yahoo.com/
> 


=====

Andrew Goodnough
agoodno@yahoo.com

How do you know you've come far enough, until you've gone too far?

- Sheldon Kopp

 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Mime
View raw message