cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r915952 - /incubator/cassandra/branches/cassandra-0.6/build.xml
Date Wed, 24 Feb 2010 19:53:02 GMT
Author: eevans
Date: Wed Feb 24 19:53:02 2010
New Revision: 915952

URL: http://svn.apache.org/viewvc?rev=915952&view=rev
Log:
new rat-write target to add missing license headers

Patch by eevans for CASSANDRA-831

Modified:
    incubator/cassandra/branches/cassandra-0.6/build.xml

Modified: incubator/cassandra/branches/cassandra-0.6/build.xml
URL: http://svn.apache.org/viewvc/incubator/cassandra/branches/cassandra-0.6/build.xml?rev=915952&r1=915951&r2=915952&view=diff
==============================================================================
--- incubator/cassandra/branches/cassandra-0.6/build.xml (original)
+++ incubator/cassandra/branches/cassandra-0.6/build.xml Wed Feb 24 19:53:02 2010
@@ -438,7 +438,7 @@
     </typedef>
   </target>
 
-  <target name="rat" depends="rat-init">
+  <target name="rat-check" depends="rat-init">
     <rat:report xmlns:rat="antlib:org.apache.rat.anttasks"
                 reportFile="${build.dir}/rat-report.log">
       <fileset dir="."  excludesfile=".rat-excludes" />
@@ -450,6 +450,22 @@
     </condition>
     <fail unless="rat.passed">Unknown licenses: See build/rat-report.log.</fail>
   </target>
+
+  <target name="rat-write" depends="rat-init">
+    <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>
+      <arg value="-a" />
+      <arg value="--force" />
+      <arg value="." />
+    </java>
+  </target>
 	
   <target name="javadoc" depends="init">
     <tstamp>



Mime
View raw message