Re: [antxtras] Cannot echo variable

2011-01-03 Thread Wascally Wabbit
Hi Peter, Not sure why your original snippet did not work; it should. You're declaring a variable -- so you should use $var: not $ref: (variables and references are distinct). To define a string as a reference, use the scope='project' attribute of the component as in: I've attached an e

Re: [antxtras] Cannot echo variable

2011-01-03 Thread P.N.
Found my problem: had to use $ref: instead of $var: Regards P. P.N. schrieb: Hello! I've got a problem with variables in the following snippet: 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.

Re: [antxtras] Cannot echo variable

2011-01-03 Thread P.N.
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 "

Re: [antxtras] Cannot echo variable

2011-01-03 Thread sourabh chaki
Hi Peter, Here message is a string of value "TEST = ${$var:test}" as it is quoted. Variable part should be unquoted. Try this. Thanks Sourabh On Mon, Jan 3, 2011 at 4:28 PM, P.N. wrote: > > Hello! > > I've got a problem with variables in the following snippet: > >     >     > > Resu

[antxtras] Cannot echo variable

2011-01-03 Thread P.N.
Hello! I've got a problem with variables in the following snippet: 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 --