cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r919071 - /incubator/cassandra/trunk/build.xml
Date Thu, 04 Mar 2010 17:11:16 GMT
Author: eevans
Date: Thu Mar  4 17:11:16 2010
New Revision: 919071

URL: http://svn.apache.org/viewvc?rev=919071&view=rev
Log:
eliminate duplication in setting classpath for rat

Patch by eevans

Modified:
    incubator/cassandra/trunk/build.xml

Modified: incubator/cassandra/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/build.xml?rev=919071&r1=919070&r2=919071&view=diff
==============================================================================
--- incubator/cassandra/trunk/build.xml (original)
+++ incubator/cassandra/trunk/build.xml Thu Mar  4 17:11:16 2010
@@ -78,6 +78,12 @@
         </fileset>
         <pathelement location="${build.dir}/ivy-${ivy.version}.jar"/>
     </path>
+    <path id="rat.classpath">
+      <fileset dir="${build.dir.lib}">
+        <include name="**/apache-rat*.jar"/>
+        <include name="**/commons-*.jar"/>
+      </fileset>
+    </path>
 
     <!--
 	Setup the output directories.
@@ -205,12 +211,7 @@
       </exec>
       <java classname="org.apache.rat.Report" fork="true"
             output="${build.dir}/rat-report.log">
-        <classpath>
-          <fileset dir="${build.dir.lib}">
-            <include name="**/apache-rat*.jar"/>
-            <include name="**/commons-*.jar"/>
-          </fileset>
-        </classpath>
+        <classpath refid="rat.classpath" />
         <arg value="-a" />
         <arg value="--force" />
         <arg value="interface/thrift" />
@@ -441,12 +442,7 @@
   <target name="rat-init" depends="ivy-retrieve-qa">
     <typedef resource="org/apache/rat/anttasks/antlib.xml"
              uri="antlib:org.apache.rat.anttasks">
-      <classpath>
-        <fileset dir="${build.dir.lib}">
-          <include name="**/apache-rat*.jar"/>
-          <include name="**/commons-*.jar"/>
-        </fileset>
-      </classpath>
+      <classpath refid="rat.classpath" />
     </typedef>
   </target>
 
@@ -467,12 +463,7 @@
     <echo>RAT: invoking addLicense to write missing headers</echo>
     <java classname="org.apache.rat.Report" fork="true"
           output="${build.dir}/rat-report.log">
-      <classpath>
-        <fileset dir="${build.dir.lib}">
-          <include name="**/apache-rat*.jar"/>
-          <include name="**/commons-*.jar"/>
-        </fileset>
-      </classpath>
+      <classpath refid="rat.classpath" />
       <arg value="-a" />
       <arg value="--force" />
       <arg value="." />



Mime
View raw message