> -----Original Message-----
> From: Jerry Brown [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 1:49 PM
> To: [EMAIL PROTECTED]
> Subject: Nested variables
>
>
> I am rewriting my build.xml file so that I can pass it a buildtype
> property value of "development" or "nightly" or "production".
> ...
> Is it possible to have a variable inside another like that?
> If not, can
> I do something like "${(${buildtype}).replyToEmail}" ?
>
> TIA,
> Jerry
>

I don't know if the nesting is possible, but wonder why you don't want to
have separate property files (perhaps with a common.properties for the
things that stay the same). I have used:

<property file="common.properties"/>
<property file="${buildtype}.properties" />

on several projects with no particular difficulty.


George McKinney, Developer
Tantalus Communications Inc.
500-1122 Mainland Street
Vancouver, BC, Canada V6B 5L1
[EMAIL PROTECTED]

Direct  604.726.6753
Main    604.609.0700
Fax     604.609.0705

"Building successful IT projects since 1994"
www.tantalus.com




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to