Andy,

You can use property references in properties files. It should all work as
expected.
app.src.dir=src
descriptors.dir=${app.src.dir}/descriptors

Try it. In current CVS builds, you may get warnings. I'll be trying to
remove those soon.

Conor

----- Original Message -----
From: "Andrew Goodnough" <[EMAIL PROTECTED]>
To: "Ant User List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 1: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?
>
>


Reply via email to