ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: beanshell script and property write
Date Wed, 09 Apr 2003 16:11:43 GMT
Ant properties are immutable. --DD

-----Original Message-----
From: KOFFMANN Gilles [mailto:Gilles.KOFFMANN@totalfinaelf.com] 
Sent: Wednesday, April 09, 2003 11:07 AM
To: user@ant.apache.org
Cc: jerome.minardi@webmethods.com
Subject: beanshell script and property write

Hi,

I'm using beanshell script. I can read  a property but
it seems that I can not write to it. Here's the example:

<property name="revision" value="1.1"/>
<property name="revisionNum" value="anything"/>

<target ...>
<script language="beanshell"> <![CDATA[

          revisionNum = revision;
          System.out.println(revisionNum);
         ]]>
</script>

<echo message="${revisionNum}"/>
</target>

println() says "1.1"
echo says "anything"

Is it impossible to write back a property ?

My environment:
NT 5
jdk-1.3
ant 1.5.1
bsf 2.2
bsh 1.2b7

Regards

Gilles KOFFMANN



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

Mime
View raw message