ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject [script] groovy - use existing properties ?
Date Wed, 29 Nov 2006 13:08:50 GMT

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


Mime
View raw message