You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2006/11/20 18:41:05 UTC
svn commit: r477268 - /beehive/trunk/distribution.xml
Author: ekoneil
Date: Mon Nov 20 09:41:05 2006
New Revision: 477268
URL: http://svn.apache.org/viewvc?view=rev&rev=477268
Log:
Add target for running RAT against the binary|lib|src|docs distributions.
To run the target, sync / build RAT and set the RAT_HOME environment variable (would be better done with a user.properties file, but we don't have that today).
Output from RAT is placed in the build/ directory.
Test: target works...
Modified:
beehive/trunk/distribution.xml
Modified: beehive/trunk/distribution.xml
URL: http://svn.apache.org/viewvc/beehive/trunk/distribution.xml?view=diff&rev=477268&r1=477267&r2=477268
==============================================================================
--- beehive/trunk/distribution.xml (original)
+++ beehive/trunk/distribution.xml Mon Nov 20 09:41:05 2006
@@ -622,6 +622,30 @@
</ant>
</target>
+ <target name="rat" description="Run the RAT tool to verify a distribution">
+ <fail unless="os.RAT_HOME" message="To run RAT, set the RAT_HOME environment variable"/>
+
+ <echo>Run RAT on ${dist.base.dir}/${dist.lib.name}. Output in build/rat-${dist.lib.name}.txt</echo>
+ <java jar="${os.RAT_HOME}/rat-0.2-SNAPSHOT.jar" fork="true" output="build/rat-${dist.lib.name}.txt">
+ <arg line="${dist.base.dir}/${dist.lib.name}"/>
+ </java>
+
+ <echo>Run RAT on ${dist.base.dir}/${dist.name}. Output in build/rat-${dist.name}.txt</echo>
+ <java jar="${os.RAT_HOME}/rat-0.2-SNAPSHOT.jar" fork="true" output="build/rat-${dist.name}.txt">
+ <arg line="${dist.base.dir}/${dist.name}"/>
+ </java>
+
+ <echo>Run RAT on ${dist.base.dir}/${dist.src.name}. Output in build/rat-${dist.src.name}.txt</echo>
+ <java jar="${os.RAT_HOME}/rat-0.2-SNAPSHOT.jar" fork="true" output="build/rat-${dist.src.name}.txt">
+ <arg line="${dist.base.dir}/${dist.src.name}"/>
+ </java>
+
+ <echo>Run RAT on ${dist.base.dir}/${dist.docs.name}. Output in build/rat-${dist.docs.name}.txt</echo>
+ <java jar="${os.RAT_HOME}/rat-0.2-SNAPSHOT.jar" fork="true" output="build/rat-${dist.docs.name}.txt">
+ <arg line="${dist.base.dir}/${dist.docs.name}"/>
+ </java>
+ </target>
+
<!-- ============================================= -->
<!-- -->
<!-- Local macrodefs -->