harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r984708 - /harmony/enhanced/java/trunk/build.xml
Date Thu, 12 Aug 2010 10:01:06 GMT
Author: hindessm
Date: Thu Aug 12 10:01:06 2010
New Revision: 984708

URL: http://svn.apache.org/viewvc?rev=984708&view=rev
Log:
Help the next release manager . . .
  Update to rat 0.7 release and make it easy to use ant.version to override
  this to use a different release.
  Add classpath entries so a binary download of rat can be used as well as
  a source build.

Modified:
    harmony/enhanced/java/trunk/build.xml

Modified: harmony/enhanced/java/trunk/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/build.xml?rev=984708&r1=984707&r2=984708&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/build.xml (original)
+++ harmony/enhanced/java/trunk/build.xml Thu Aug 12 10:01:06 2010
@@ -117,21 +117,33 @@ Usage:
                  bundle-src-zip" />
 
     <target name="rat" depends="setup,copy-src">
+        <property name="rat.version" value="0.7" />
         <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"
/>
+            <!-- these work if rat.home is a built source checkout -->
+            <classpath path="${rat.home}/apache-rat-tasks/target/apache-rat-tasks-${rat.version}.jar"
/>
+            <classpath path="${rat.home}/apache-rat-core/target/apache-rat-core-${rat.version}.jar"
/>
+            <classpath path="${rat.home}/apache-rat/target/apache-rat-${rat.version}.jar"
/>
+
+            <!-- these work if rat.home is a binary build -->
+            <classpath path="${rat.home}/apache-rat-tasks-${rat.version}.jar" />
+            <classpath path="${rat.home}/apache-rat-core-${rat.version}.jar" />
+            <classpath path="${rat.home}/apache-rat-${rat.version}.jar" />
         </typedef>
         <delete file="${hy.target}/rat.report.txt" />
         <rat:report xmlns:rat="antlib:org.apache.rat.anttasks"
                     reportFile="${hy.target}/rat.report.txt" >
             <fileset dir="${hy.target}/src" excludesfile="rat.excludes" />
         </rat:report>
+        <property name="rat.location"
+                  location="${hy.target}/rat.report.txt" />
+        <echo>Rat report generated at
+  ${rat.location}
+        </echo>
     </target>
 
     <!-- ============================================================== -->



Mime
View raw message