Author: maartenc
Date: Tue Oct 13 21:40:12 2009
New Revision: 824938

URL: http://svn.apache.org/viewvc?rev=824938&view=rev
Log:
Added "rat" target to build-release.xml that executes the RAT Ant tasks in 
order to find files with unapproved licenses.

Modified:
    ant/ivy/core/trunk/build-release.xml

Modified: ant/ivy/core/trunk/build-release.xml
URL: 
http://svn.apache.org/viewvc/ant/ivy/core/trunk/build-release.xml?rev=824938&r1=824937&r2=824938&view=diff
==============================================================================
--- ant/ivy/core/trunk/build-release.xml (original)
+++ ant/ivy/core/trunk/build-release.xml Tue Oct 13 21:40:12 2009
@@ -286,6 +286,24 @@
                </openpgp:signer>
        </target>
        
+       <target name="rat" depends="init-ivy">
+        <ivy:cachepath organisation="org.apache.rat" module="apache-rat-tasks" 
revision="0.6" 
+                       inline="true" conf="default" pathid="rat.classpath" 
+                       log="download-only"/>
+               
+           <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="${rat.report.dir}/rat-report.txt">
+             <fileset dir="${basedir}">
+               <exclude name="build/**/*"/>
+             </fileset>
+           </rat:report>
+
+       </target>
+       
        <target name="prepare-snapshot" 
                depends="/localivy, clean-ivy-home, clean, clean-lib, 
snapshot-version, install, clean-examples, coverage-report" />
        <target name="snapshot" 


Reply via email to