Workaround for bugged empty() function in jelly (m1.0 compatibility).

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@413765 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl
2006-06-12 23:28:01 +00:00
parent 002c212719
commit 0a840ed13c
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@
<!-- Only display a "Downloads" menu link if the
maven.xdoc.distributionUrl has been defined -->
<j:if test="${!empty(context.getVariable('maven.xdoc.distributionUrl'))}">
<j:if test="${context.getVariable('maven.xdoc.distributionUrl') != null and context.getVariable('maven.xdoc.distributionUrl') != ''}">
<item key="navigation.menu.item.downloads"
bundle="plugin-resources.templates.templates"
name="Downloads" href="/downloads.html" />

View File

@@ -45,7 +45,7 @@
property is not defined -->
<j:choose>
<j:when test="${empty(context.getVariable('maven.xdoc.distributionUrl'))}">
<j:when test="${context.getVariable('maven.xdoc.distributionUrl') != null and context.getVariable('maven.xdoc.distributionUrl') != ''}">
<p>
<message key="template.downloads.section.no_distURL1"
bundle="plugin-resources.templates.templates" />