HADOOP-6160. Fix ant releaseaudit target to run on specific directories. (Contributed by Giridharan Kesavan)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@798093 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Giridharan Kesavan 2009-07-27 10:09:38 +00:00
parent f4166ddfad
commit 6c12fd3335
4 changed files with 19 additions and 11 deletions

View File

@ -485,6 +485,9 @@ Trunk (unreleased changes)
HADOOP-6161. Add get/setEnum methods to Configuration. (cdouglas) HADOOP-6161. Add get/setEnum methods to Configuration. (cdouglas)
HADOOP-6160. Fix releaseaudit target to run on specific directories.
(gkesavan)
OPTIMIZATIONS OPTIMIZATIONS
HADOOP-5595. NameNode does not need to run a replicator to choose a HADOOP-5595. NameNode does not need to run a replicator to choose a

View File

@ -1013,12 +1013,19 @@
<!-- ================================================================== --> <!-- ================================================================== -->
<!-- Perform audit activities for the release --> <!-- Perform audit activities for the release -->
<!-- ================================================================== --> <!-- ================================================================== -->
<target name="releaseaudit" depends="package,ivy-retrieve-releaseaudit" description="Release Audit activities"> <target name="rats-taskdef" depends="ivy-retrieve-releaseaudit">
<fail unless="rat.present" message="Failed to load class [${rat.reporting.classname}]."/> <typedef format="xml" resource="org/apache/rat/anttasks/antlib.xml" uri="antlib:org.apache.rat.anttasks"
<java classname="${rat.reporting.classname}" fork="true"> classpathref="releaseaudit-classpath"/>
<classpath refid="releaseaudit-classpath"/> </target>
<arg value="${build.dir}/${final.name}"/>
</java> <target name="releaseaudit" depends="package, rats-taskdef" description="Release Audit activities">
<rat:report xmlns:rat="antlib:org.apache.rat.anttasks">
<fileset dir="${dist.dir}">
<exclude name="CHANGES.txt"/>
<exclude name="docs/"/>
<exclude name="lib/jdiff/"/>
</fileset>
</rat:report>
</target> </target>
<!-- ================================================================== --> <!-- ================================================================== -->
@ -1278,8 +1285,6 @@
<ivy:retrieve settingsRef="${ant.project.name}.ivy.settings" <ivy:retrieve settingsRef="${ant.project.name}.ivy.settings"
pattern="${build.ivy.lib.dir}/${ivy.artifact.retrieve.pattern}" /> pattern="${build.ivy.lib.dir}/${ivy.artifact.retrieve.pattern}" />
<ivy:cachepath pathid="releaseaudit-classpath" conf="releaseaudit"/> <ivy:cachepath pathid="releaseaudit-classpath" conf="releaseaudit"/>
<available classname="${rat.reporting.classname}"
classpathref="releaseaudit-classpath" property="rat.present" value="true"/>
</target> </target>
<target name="ivy-report" depends="ivy-resolve-releaseaudit" <target name="ivy-report" depends="ivy-resolve-releaseaudit"

View File

@ -228,8 +228,8 @@
name="junit" name="junit"
rev="${junit.version}" rev="${junit.version}"
conf="common->default"/> conf="common->default"/>
<dependency org="com.google.code.p.arat" <dependency org="org.apache.rat"
name="rat-lib" name="apache-rat-tasks"
rev="${rats-lib.version}" rev="${rats-lib.version}"
conf="releaseaudit->default"/> conf="releaseaudit->default"/>
<dependency org="commons-lang" <dependency org="commons-lang"

View File

@ -61,7 +61,7 @@ mina-core.version=2.0.0-M5
oro.version=2.0.8 oro.version=2.0.8
rats-lib.version=0.5.1 rats-lib.version=0.6
servlet.version=4.0.6 servlet.version=4.0.6
servlet-api-2.5.version=6.1.14 servlet-api-2.5.version=6.1.14