ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r987479 - /ant/ivy/updatesite/trunk/build.xml
Date Fri, 20 Aug 2010 12:35:39 GMT
Author: hibou
Date: Fri Aug 20 12:35:38 2010
New Revision: 987479

URL: http://svn.apache.org/viewvc?rev=987479&view=rev
Log:
Add some RAT report

Modified:
    ant/ivy/updatesite/trunk/build.xml

Modified: ant/ivy/updatesite/trunk/build.xml
URL: http://svn.apache.org/viewvc/ant/ivy/updatesite/trunk/build.xml?rev=987479&r1=987478&r2=987479&view=diff
==============================================================================
--- ant/ivy/updatesite/trunk/build.xml (original)
+++ ant/ivy/updatesite/trunk/build.xml Fri Aug 20 12:35:38 2010
@@ -523,5 +523,56 @@ baseLocation=${basedir}/${hudson.eclipse
     </target>
 
     <target name="hudson-build" depends="clean,hudson-find-ivy-jar,hudson-find-ivyde-zip,install-ivy-and-ivyde,optimize"
/>
+    <!--
+        ======================================================================================
+        Targets related to the RAT reports
+        ======================================================================================
+     -->
+
+    <target name="init-ivy">
+        <property name="ivy.version"  value="2.2.0-rc1"/>
+        <property name="ivy.jar.url"  value="http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.version}/ivy-${ivy.version}.jar"/>
+        <property name="ivy.jar.dir"  value="${work.dir}/ivy"/>
+        <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar"/>
+        <mkdir dir="${ivy.jar.dir}"/>
+        <get src="${ivy.jar.url}" dest="${ivy.jar.file}" usetimestamp="true"/>
+        <path id="ivy.lib.path">
+            <fileset dir="${ivy.jar.dir}" includes="*.jar"/>
+        </path>
+        <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant"
classpathref="ivy.lib.path"/>
+    </target>
+
+    <!-- RAT Release Auditing Tool -->
+    <property name="rat.version" value="0.7" description="Which Version of RAT to use"/>
+    <property name="rat.dir" value="${work.dir}/rat" />
+
+    <target name="rat" description="--> Runs the ReleaseAuditingTool"  depends="init-ivy"
xmlns:ivy="antlib:org.apache.ivy.ant">
+        <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"/>
+        <delete dir="${rat.dir}"/>
+        <mkdir dir="${rat.dir}"/>
+        <property file="${updatesite.dir}/version.properties" />
+        <rat:report xmlns:rat="antlib:org.apache.rat.anttasks" reportfile="${rat.dir}/report.txt">
+            <restrict>
+                <union>
+                    <zipfileset src="${updatesite.dir}/digest.zip" />
+                    <archives>
+                        <zips>
+                            <fileset dir="${updatesite.dir}">
+                                <include name="features/*.jar" />
+                                <include name="plugins/*.jar" />
+                            </fileset>
+                        </zips>
+                    </archives>
+                </union>
+                <not>
+                    <name name="META-INF/MANIFEST.MF" />
+                </not>
+            </restrict>
+        </rat:report>
+    </target>
 
 </project>



Mime
View raw message