This is a nice thing.
Antoine
j...@apache.org wrote:
Author: jhm
Date: Thu Jan 7 14:17:18 2010
New Revision: 896889
URL: http://svn.apache.org/viewvc?rev=896889&view=rev
Log:
Target for downloading and running Apache RAT (Release Auditing Tool)
Modified:
ant/core/trunk/check.xml
Modified: ant/core/trunk/check.xml
URL:
http://svn.apache.org/viewvc/ant/core/trunk/check.xml?rev=896889&r1=896888&r2=896889&view=diff
==============================================================================
--- ant/core/trunk/check.xml (original)
+++ ant/core/trunk/check.xml Thu Jan 7 14:17:18 2010
@@ -69,7 +69,7 @@
file="${findbugs.download.to}/${findbugs.download.name}/lib/findbugs.jar"
description="Check if Findbugs is already installed."
/>
-
+
<!-- Findbugs: Running Findbugs -->
<property name="findbugs.reportdir"
location="${build.dir}/reports/findbugs"
@@ -84,6 +84,17 @@
value="-Xms128m -Xmx512m"
description="JVMArgs for invoking Findbugs"/>
+ <!-- RAT Release Auditing Tool -->
+ <property name="rat.report.dir"
+ value="${build.dir}/reports/rat"
+ description="Where to store the RAT reports"/>
+ <property name="rat.report.file"
+ value="${rat.report.dir}/report.html"
+ description="RAT-Report file"/>
+ <property name="rat.version"
+ value="0.6"
+ description="Which Version of RAT to use"/>
+
<target name="init-ivy">
@@ -205,5 +216,21 @@
</style>
</xslt>
</target>
+
+
+ <target name="rat" description="Runs the ReleaseAuditingTool" depends="init-ivy">
+ <ivy:cachepath organisation="org.apache.rat" module="apache-rat-tasks"
revision="${rat.version}"
+ inline="true" conf="default" pathid="rat.classpath"
transitive="true"/>
+ <typedef resource="org/apache/rat/anttasks/antlib.xml"
+ uri="antlib:org.apache.rat.anttasks"
+ classpathref="rat.classpath"/>
+ <mkdir dir="${rat.report.dir}"/>
+ <rat:report xmlns:rat="antlib:org.apache.rat.anttasks"
reportfile="${build.dir}/reports/rat/report.txt">
+ <fileset dir="${java.dir}">
+ <exclude name="org/apache/tools/ant/defaultManifest.mf"/>
+ <exclude name="org/apache/tools/ant/version.txt"/>
+ </fileset>
+ </rat:report>
+ </target>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org