{$mainplugin == 'true'} should be
${mainplugin == 'true'}

-----Original Message-----
From: Eric Black [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 09, 2004 2:54 PM
To: [EMAIL PROTECTED]
Subject: jelly if test tag


Hi,

I'm trying to use the following code:

        <ant:available property="mainplugin"
file="${maven.plugin.dir}/${pluginname}.jar" /> <ant:echo
message="MAINPLUGIN ${mainplugin}" />
        <j:if test="{$mainplugin == 'true'}">
          <ant:echo message="${maven.plugin.dir}/${pluginname}.jar is in the
main maven plugins directory" />
          <ant:delete file="${maven.plugin.dir}/${pluginname}.jar" />"
        </j:if>


When I run it, I get the first test message reading "MAINPLUGIN true", but
the test fails with the second echo not happenning or the file deletion. I
have looked at other jelly scripts doing similar tests, but I can't figure
out why the test never passes. Any ideas?

Thanks,
Eric

Reply via email to