You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Nau, Michael" <Mi...@pyxis.com> on 2002/11/16 01:28:48 UTC

Composite Properties

Is there anyway to specify a composite property? For example: 

<property name="name" value="exception"/>
<property name="exception.jar.path" value="D:/lib/exception.jar"/>

"${ ${name} .jar.path}" 







--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Composite Properties

Posted by Benjamin Lubin <bl...@bbn.com>.
Not easily.  The way I've done it in the past is:

1) echo "$name.jar.path" to a temp file.
2) use loadfile with an ExpandProperties filter on it to load the contents 
of the file into a variable. This variable will contain the value of the 
expression you want
3) delete the temp file.
4) use the variable you have loaded...

Hope this helps,
-Ben

At 04:28 PM 11/15/02 -0800, Nau, Michael wrote:
>Is there anyway to specify a composite property? For example:
>
><property name="name" value="exception"/>
><property name="exception.jar.path" value="D:/lib/exception.jar"/>
>
>"${ ${name} .jar.path}"
>
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>