o Removed extraneous <mkdir>s o Converted to new method of accessing properties git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112743 13f79535-47bb-0310-9956-ffa450edef68
51 lines
1.5 KiB
XML
51 lines
1.5 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<project
|
|
xmlns:j="jelly:core"
|
|
xmlns:define="jelly:define"
|
|
xmlns:license="license">
|
|
|
|
<define:taglib uri="license">
|
|
<define:jellybean name="license"
|
|
className="org.apache.maven.license.LicenseTask"
|
|
method="doExecute" />
|
|
</define:taglib>
|
|
|
|
<!-- ================================================================== -->
|
|
<!-- L I C E N S E -->
|
|
<!-- ================================================================== -->
|
|
|
|
<goal name="license"
|
|
description="Generate a xml file from your license.txt"
|
|
prereqs="license:transfer"/>
|
|
|
|
<goal
|
|
name="license:transfer"
|
|
prereqs="xdoc:init"
|
|
description="Generate a xml file from your license.txt">
|
|
|
|
<j:set var="licenseX" value='${maven.license.licenseFile}X'/>
|
|
<j:set var="genDocs"
|
|
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.gen.docs')}"/>
|
|
|
|
<j:choose>
|
|
<j:when test="${licenseX != 'X'}">
|
|
<j:set var="licenseFile" value='${maven.license.licenseFile}'/>
|
|
</j:when>
|
|
<j:otherwise>
|
|
<j:set var="licenseFile" value='${basedir}/LICENSE.txt'/>
|
|
</j:otherwise>
|
|
</j:choose>
|
|
|
|
<license:license
|
|
description="Project License"
|
|
input="${licenseFile}"
|
|
output="${genDocs}/license.xml"
|
|
outputEncoding="${maven.docs.outputencoding}"
|
|
title="License"
|
|
/>
|
|
|
|
</goal>
|
|
|
|
</project>
|