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:
@@ -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" />
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user