You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2010/03/07 21:21:43 UTC

svn commit: r920088 - in /harmony/enhanced/trunk: build.xml rat.excludes

Author: hindessm
Date: Sun Mar  7 20:21:43 2010
New Revision: 920088

URL: http://svn.apache.org/viewvc?rev=920088&view=rev
Log:
Add a target to help people run rat on our source code.

Added:
    harmony/enhanced/trunk/rat.excludes
Modified:
    harmony/enhanced/trunk/build.xml

Modified: harmony/enhanced/trunk/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/trunk/build.xml?rev=920088&r1=920087&r2=920088&view=diff
==============================================================================
--- harmony/enhanced/trunk/build.xml (original)
+++ harmony/enhanced/trunk/build.xml Sun Mar  7 20:21:43 2010
@@ -105,6 +105,24 @@
                  bundle-src-tgz,
                  bundle-src-zip" />
 
+    <target name="rat" depends="setup,copy-src">
+        <fail
+             message="Set rat.home property to directory containing rat build">
+            <condition><not><available file="${rat.home}" /></not></condition>
+        </fail>
+        <typedef resource="org/apache/rat/anttasks/antlib.xml"
+                 uri="antlib:org.apache.rat.anttasks">
+            <classpath path="${rat.home}/apache-rat-tasks/target/apache-rat-tasks-0.7-SNAPSHOT.jar" />
+            <classpath path="${rat.home}/apache-rat-core/target/apache-rat-core-0.7-SNAPSHOT.jar" />
+            <classpath path="${rat.home}/apache-rat/target/apache-rat-0.7-SNAPSHOT.jar" />
+        </typedef>
+        <delete file="target/rat.report.txt" />
+        <rat:report xmlns:rat="antlib:org.apache.rat.anttasks"
+                    reportFile="target/rat.report.txt" >
+            <fileset dir="target/src" excludesfile="rat.excludes" />
+        </rat:report>
+    </target>
+
     <!-- ============================================================== -->
     <!--     populates the source directories, working_classlib,
              working_vm, working_jdktools, and common_resources         -->

Added: harmony/enhanced/trunk/rat.excludes
URL: http://svn.apache.org/viewvc/harmony/enhanced/trunk/rat.excludes?rev=920088&view=auto
==============================================================================
--- harmony/enhanced/trunk/rat.excludes (added)
+++ harmony/enhanced/trunk/rat.excludes Sun Mar  7 20:21:43 2010
@@ -0,0 +1,31 @@
+**/*.dirs
+**/*.links
+**/*.rect
+**/*.ser
+**/*.shape
+**/*.txt
+**/*.vcproj
+**/*_Skel.java
+**/*_Stub.java
+**/.classpath
+**/.project
+**/.settings
+**/MANIFEST.MF
+**/excludes/exclude.*
+**/make/*.policy
+**/make/exclude.*
+**/test/resources/**
+**/tests/excludes/exclude.*
+**/tests/resources/**
+**/x/print/javax.print.*
+**/x/swing/text/html/cssparser/*.java
+**/x/swing/text/rtf/*.java
+working_classlib/modules/archive/src/main/native/zlib/windows/hyzlib.def
+working_classlib/modules/archive/src/main/native/zlib/windows/hyzlib.rc
+working_classlib/modules/concurrent/src/main/java/java/util/concurrent/**
+working_classlib/modules/concurrent/src/test/java/**
+working_classlib/modules/luni/src/main/native/fdlibm/shared/s_lib_version.c
+working_classlib/modules/luni/src/main/native/include/fdlibm.h
+working_classlib/modules/nio/META-INF/services/java.nio.channels.spi.SelectorProvider
+working_classlib/modules/portlib/src/test/native/hymmap/shared/emptyFile
+working_classlib/modules/portlib/src/test/native/hymmap/shared/testFile