dion 2003/07/27 22:24:26
Modified: src/plugins-build/license plugin.jelly
Log:
Put back recent changes
Revision Changes Path
1.16 +13 -6 maven/src/plugins-build/license/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/maven/src/plugins-build/license/plugin.jelly,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- plugin.jelly 27 Jul 2003 23:33:59 -0000 1.15
+++ plugin.jelly 28 Jul 2003 05:24:26 -0000 1.16
@@ -28,7 +28,7 @@
<util:replace var="forwardSlashFile" oldChar="\" newChar="/" trim="yes">
<license:fileName />
</util:replace>
- <!-- change bsaedir to have forward slashes too -->
+ <!-- change basedir to have forward slashes too -->
<util:replace var="forwardSlashBaseDir" value="${basedir}"
oldChar="\" newChar="/" />
<j:if test="${!forwardSlashBaseDir.endsWith('/')}">
@@ -46,11 +46,18 @@
<!-- L I C E N S E -->
<!-- ================================================================== -->
<goal name="maven-license-plugin:register">
- <doc:registerReport
- name="Project License"
- pluginName="maven-license-plugin"
- link="license"
- description="Displays the primary license for the project."/>
+ <j:set var="licenseFile"><license:fileName /></j:set>
+ <util:available file="${licenseFile}">
+ <j:set var="licensePresent" value="true"/>
+ </util:available>
+
+ <j:if test="${licensePresent == 'true'}">
+ <doc:registerReport
+ name="Project License"
+ pluginName="maven-license-plugin"
+ link="license"
+ description="Displays the primary license for the project."/>
+ </j:if>
</goal>
<goal name="maven-license-plugin:deregister">
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]