Author: ltheussl
Date: Tue Sep 6 17:16:53 2005
New Revision: 279192
URL: http://svn.apache.org/viewcvs?rev=279192&view=rev
Log:
MPXDOC-104 : fix jelly check for empty maven.xdoc.distributionUrl
Patch submitted by : Rafal Krzewski
Patch reviewed by : Lukas Theussl
Modified:
maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/navigation.jelly
maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/templates/downloads.jelly
Modified: maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/navigation.jelly
URL:
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/navigation.jelly?rev=279192&r1=279191&r2=279192&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/navigation.jelly
(original)
+++ maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/navigation.jelly Tue
Sep 6 17:16:53 2005
@@ -35,7 +35,7 @@
<!-- Only display a "Downloads" menu link if the
maven.xdoc.distributionUrl has been defined -->
- <j:if
test="${context.getVariable('maven.xdoc.distributionUrl') != null}">
+ <j:if
test="${!empty(context.getVariable('maven.xdoc.distributionUrl'))}">
<item key="navigation.menu.item.downloads"
bundle="plugin-resources.templates.templates"
name="Downloads" href="/downloads.html" />
Modified:
maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/templates/downloads.jelly
URL:
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/templates/downloads.jelly?rev=279192&r1=279191&r2=279192&view=diff
==============================================================================
---
maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/templates/downloads.jelly
(original)
+++
maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/templates/downloads.jelly
Tue Sep 6 17:16:53 2005
@@ -39,7 +39,7 @@
property is not defined -->
<j:choose>
- <j:when test="${context.getVariable('maven.xdoc.distributionUrl') ==
null}">
+ <j:when
test="${empty(context.getVariable('maven.xdoc.distributionUrl'))}">
<p>
You must define the <code>maven.xdoc.distributionUrl</code>
property if you wish to generate the download report.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]