ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r984312 - /ant/ivy/ivyde/trunk/build.xml
Date Wed, 11 Aug 2010 07:30:37 GMT
Author: jhm
Date: Wed Aug 11 07:30:37 2010
New Revision: 984312

URL: http://svn.apache.org/viewvc?rev=984312&view=rev
Log:
JIRA 250: first implementation of a RAT target

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

Modified: ant/ivy/ivyde/trunk/build.xml
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/build.xml?rev=984312&r1=984311&r2=984312&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/build.xml (original)
+++ ant/ivy/ivyde/trunk/build.xml Wed Aug 11 07:30:37 2010
@@ -586,4 +586,52 @@ forceContextQualifier=${hudson.version.q
         <generate-eclipse-toc jsontocfile="${src.doc.dir}/toc.json" destFile="${eclipse-doc.dir}/toc.xml"
/>
     </target>
 
+
+    <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="${java.io.tmpdir}/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.report.dir"
+              value="rat/report"
+              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.7"
+              description="Which Version of RAT to use"/>
+
+    <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.report.dir}"/>
+        <mkdir dir="${rat.report.dir}"/>
+        <rat:report xmlns:rat="antlib:org.apache.rat.anttasks" reportfile="${rat.report.dir}/report.txt">
+            <!-- Check all files ... -->
+            <fileset dir=".">
+                <!-- ... without standard Eclipse/Jar files -->
+                <exclude name="**/MANIFEST.MF"/>
+                <exclude name="**/.classpath"/>
+                <exclude name="**/.project"/>
+                <exclude name="**/.settings/"/>
+                <!-- ... without Archives -->
+                <exclude name="**/*.jar"/>
+                <exclude name="**/*.zip"/>
+            </fileset>
+        </rat:report>
+    </target>
+
 </project>



Mime
View raw message