ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "P.N." <peter.nabbef...@gmx.de>
Subject Re: [antxtras] Cannot echo variable
Date Mon, 03 Jan 2011 11:12:18 GMT
Hi Sourabh,

this doesn't work, either, because it's not valid XML syntax. Trying to 
use it results in an error message:

Element type "echo" must be followed by either attribute specifications, 
">" or "/>".

Thanks
Peter


sourabh chaki schrieb:
> Hi Peter,
>
> Here message is a string of value "TEST = ${$var:test}" as it is quoted.
>    <echo message="TEST = ${$var:test}"/>
>
> Variable part should be unquoted.
>
>
> Try this.
>
>
> <xtras:assign var="test" value="dummy"/>
>   <echo message="TEST = "+${$var:test}/>
>
> Thanks
> Sourabh
>
>
> On Mon, Jan 3, 2011 at 4:28 PM, P.N.<peter.nabbefeld@gmx.de>  wrote:
>>
>> Hello!
>>
>> I've got a problem with variables in the following snippet:
>>
>>     <xtras:assign var="test" value="dummy"/>
>>     <echo message="TEST = ${$var:test}"/>
>>
>> Results in:
>>
>>     [echo] TEST = ${$var:test}
>>
>> Seems, the reference to the variable is incorrect.
>> Using antxtras_3.0.0b1-build1083.45 and ant-1.8.1.
>>
>> What's wrong???
>>
>> Kind regards
>>
>> Peter
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message