Hi,
I'm having another trouble with variables and imports.
Setting a variable str=1 in my build.properties with
the following goal
<goal name="project:test">
<!--property file="build2.properties"/-->
<!--property file="test.properties"/-->
<j:set var="str2" value="1"/>
<!--j:set var="str" value="1"/-->
<echo>${str2} and ${str}</echo>
<echo>compare ${str == str2}</echo>
<echo>compare ${str == '1'}</echo>
<echo>compare ${str == 1}</echo>
</goal>
gives me
project:test:
[echo] 1 and 1
[echo] compare false
[echo] compare false
[echo] compare
BUILD SUCCESSFUL
Total time: 1 seconds
When I remove the property there and import it from
test.properties, everything is fine and I get true 3
times. What is going on here? It seems that the
variables are there but they are not compared.
Even if the property is in both files, jelly screws
up.
Any hints how to fix this? Is it a bug?
/peter
=====
Peter Neubauer
mailto:[EMAIL PROTECTED]
Yahoo! Mail - Gratis: 6 MB lagringsutrymme, spamfilter och virusscan. Se mer p�
http://se.mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]