Author: ltheussl
Date: Tue Jan 31 16:53:50 2006
New Revision: 373955

URL: http://svn.apache.org/viewcvs?rev=373955&view=rev
Log:
Use maven.license.licenseFile for license

Modified:
    maven/maven-1/plugins/trunk/artifact/plugin.jelly

Modified: maven/maven-1/plugins/trunk/artifact/plugin.jelly
URL: 
http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/artifact/plugin.jelly?rev=373955&r1=373954&r2=373955&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/artifact/plugin.jelly (original)
+++ maven/maven-1/plugins/trunk/artifact/plugin.jelly Tue Jan 31 16:53:50 2006
@@ -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">


Reply via email to