Use maven.license.licenseFile for license

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@373955 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl
2006-02-01 00:53:50 +00:00
parent ccd94624c9
commit 3a79e32e19

View File

@@ -197,7 +197,9 @@
<ant:copy file="${basedir}/project.xml" todir="${maven.build.dir}/bundle"/>
<!-- Copy in the license, if there is no license this will fail. -->
<ant:copy file="${basedir}/LICENSE.txt" todir="${maven.build.dir}/bundle"/>
<maven:get plugin="maven-license-plugin" property="maven.license.licenseFile" var="license"/>
<ant:echo>Copying license: ${license}</ant:echo>
<ant:copy file="${license}" todir="${maven.build.dir}/bundle"/>
<!-- Add sources -->
<ant:jar jarfile="${maven.build.dir}/bundle/${maven.final.name}-sources.jar">