You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by ip...@apache.org on 2004/12/03 19:57:03 UTC

svn commit: r109716 - /incubator/muse/trunk/maven.xml /incubator/muse/trunk/src/licenses/BinaryCodeLicense-Servlet-API.txt

Author: ips
Date: Fri Dec  3 10:57:01 2004
New Revision: 109716

URL: http://svn.apache.org/viewcvs?view=rev&rev=109716
Log:
LICENSE files now generated for all dep jars

Removed:
   incubator/muse/trunk/src/licenses/BinaryCodeLicense-Servlet-API.txt
Modified:
   incubator/muse/trunk/maven.xml

Modified: incubator/muse/trunk/maven.xml
Url: http://svn.apache.org/viewcvs/incubator/muse/trunk/maven.xml?view=diff&rev=109716&p1=incubator/muse/trunk/maven.xml&r1=109715&p2=incubator/muse/trunk/maven.xml&r2=109716
==============================================================================
--- incubator/muse/trunk/maven.xml	(original)
+++ incubator/muse/trunk/maven.xml	Fri Dec  3 10:57:01 2004
@@ -228,6 +228,8 @@
     <attainGoal name="jar" />
     <copy file="${maven.build.dir}/${maven.final.name}.jar" todir="${maven.war.webapp.dir}/WEB-INF/lib" overwrite="true" verbose="true" />
 
+    <attainGoal name="dep-license-files" />
+    
     <!-- Delete empty WEB-INF/tld/ dir that war plugin created -->
     <delete dir="${maven.war.webapp.dir}/WEB-INF/tld" />
     
@@ -464,6 +466,7 @@
               eol="lf"
               includes="src/wsdl/**, src/bindings/**" />
   </goal>
+
   <goal name="pomdep" description="Creates a deps.html file under target.  Deps.html contains info on the project dependencies.">
      <mkdir dir="${maven.war.build.dir}" />
      ${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apache.xalan.processor.TransformerFactoryImpl')}     
@@ -472,4 +475,25 @@
        classpathref="maven.dependency.classpath"
        processor="trax"/>         
   </goal>  
+  
+  <!-- ================================================================== -->
+  <!-- D E P - L I C E N S E - F I L E S   G O A L                        -->
+  <!-- ================================================================== -->
+  <!-- Creates a *.LICENSE file for each dependency jar based on the      -->    
+  <!-- "license" property from the dependency definition in the POM       -->
+  <!-- ================================================================== -->
+  <goal name="dep-license-files"> 
+     <property name="licenses.src.dir" location="${maven.src.dir}/licenses" />
+     <property name="licenses.dest.dir" location="${maven.war.webapp.dir}/WEB-INF/lib" />     
+     <mkdir dir="${licenses.dest.dir}" />
+     <j:forEach var="dep" items="${pom.dependencies}">
+        <j:if test="${!dep.Type.equals('jar')}">
+           <j:coninue />
+        </j:if>            
+        <j:if test="${dep.getProperty('license') != null}">	              
+	   <copy file="${licenses.src.dir}/${dep.getProperty('license')}" tofile="${licenses.dest.dir}/${dep.ArtifactId}-${dep.Version}.LICENSE" />          
+        </j:if>  
+     </j:forEach>  
+  </goal>  
+     
 </project>

Deleted: /incubator/muse/trunk/src/licenses/BinaryCodeLicense-Servlet-API.txt
Url: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/licenses/BinaryCodeLicense-Servlet-API.txt?view=auto&rev=109715
==============================================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org