At 03:30 PM 5/29/01 +0100, [EMAIL PROTECTED] wrote:
>Is there any way to make property references work in a non-attribute way.
>In the following task I have the command.text property which comes out fine
>in the echo task since it is part of the message attribute of echo. But
>further down in the telnet task it is used again as the value of a write
>element. Trouble is it comes out as "${command.text}" and not "ls". Help
>would be appreciated.
I wanted to change this ages ago but currently it is not possible. You may
be able to make changes to local ant convince everyone that it is a good
idea of content of elements also has ${}'s expanded.
>From Memory you need to go to ProjectHelper.addText() and add an extra line
before it calls introspection helper to do something like.
String newValue = replaceProperties( project, oldValue );
good luck.
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*