MPANT-23: Add License file to jar META-INF. Thanks to Phil Steitz.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@155609 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier 2005-02-27 01:52:55 +00:00
parent b8ed332915
commit 6af21bb24d
3 changed files with 13 additions and 2 deletions

View File

@ -165,6 +165,14 @@
</j:forEach>
<!-- Copy license -->
<ant:echo>${maven.license.licenseFile}</ant:echo>
<j:set var="licenseFile" value="${maven.license.licenseFile}"/>
<j:if test="${licenseFile != null and not licenseFile.trim().equals('')}">
<maven:makeRelativePath var="licensePath" basedir="${basedir}" path="${maven.license.licenseFile}" separator="/"/>
<copy todir="$${classesdir}/META-INF" file="${licensePath}"/>
</j:if>
</target>
<target

View File

@ -1,2 +1,4 @@
maven.jar.override=on
maven.jar.activation = ${basedir}/lib/activation-1.0.2.jar
maven.license.licenseFile=${basedir}/../../../LICENSE.txt

View File

@ -29,6 +29,7 @@
<action dev="aheritier" type="add">Ant user can set proxy settings.</action>
<action dev="aheritier" type="add">New property maven.ant.compatibility if you want a script compatible with ant 1.5 (actually for proxy settings).</action>
<action dev="aheritier" type="update" issue="MPANT-21">"get-deps" target store downloads to the default local maven repository (<i>${user.home}/.maven/repository</i>).</action>
<action dev="aheritier" type="add" issue="MPANT-23" due-to="Phil Steitz">Add License file to jar META-INF.</action>
</release>
<release version="1.8.1" date="2004-08-20">
<action dev="carlos" type="fix" issue="MPANT-16">Use relative paths in test resources filesets.</action>