Reformatting

use empty, not == null


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114017 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion
2003-09-16 04:54:20 +00:00
parent 181b00bd08
commit 2e6fe2ddba

View File

@@ -53,11 +53,13 @@
<j:if test="${add.equals('true')}">
<j:new var="report" className="java.util.HashMap"/>
<j:set var="dummy" value="${report.put('name', name)}"/>
<j:set var="dummy" value="${report.put('pluginName', pluginName)}"/>
<j:set var="dummy" value="${report.put('description', description)}"/>
<j:set var="dummy" value="${report.put('link', link)}"/>
<j:set var="dummy" value="${reports.add(report)}"/>
<j:set var="dummy">
${report.put('name', name)}
${report.put('pluginName', pluginName)}
${report.put('description', description)}
${report.put('link', link)}
${reports.add(report)}
</j:set>
</j:if>
</define:tag>
@@ -117,10 +119,10 @@
| documents easily. See jslCore for a tag suitable for
| transforming documents how you want.
| @input
| @output - Will be placed under ${maven.gen.docs}
| @outputDirectory - Will be placed under ${maven.gen.docs}
| @stylesheet
| @encoding
| @omitXmlDeclaration
| @encoding - defaults to ${maven.docs.outputencoding}
| @omitXmlDeclaration - defaults to ${maven.docs.omitXmlDeclaration}
| @outputMode
| @prettyPrint
-->
@@ -130,15 +132,7 @@
-->
<!-- Set default outputDirectory if not set. -->
<!--
These do not work to evaluate to what you would expect
<j:if test="!${outputDirectory}">
why doesn't this give the same as comparing to null?
why not use empty()?
-->
<j:if test="${outputDirectory == null}">
<j:if test="${empty(outputDirectory)}">
<j:set var="outputDirectory" value="${maven.gen.docs}"
/>
</j:if>