You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Rebhan, Gilbert" <Gi...@huk-coburg.de> on 2006/11/29 14:08:50 UTC
[script] groovy - use existing properties ?
Hi,
just playing with groovy.
Question =
How do i call an existing property, f.e. =
<!-- // Properties -->
<property name="foo" value="blah"/>
<property name="bar" value="blahblah"/>
<!-- Properties // -->
<groovy>
<![CDATA[
ant.echo(file: "${foo}_${bar}_script.params")
]]>
</groovy>
gives me =
groovy.lang.MissingPropertyException: No such property: foo for class:
Script1
What's the correct syntax ?!
env = groovy-1.0-JSR-06, ant 1.6.5, jdk1.4.2_05, Win2K
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org