You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eric Black <eb...@concord.org> on 2004/12/09 20:54:27 UTC
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