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:
parent
f4166ddfad
commit
6c12fd3335
@ -485,6 +485,9 @@ Trunk (unreleased changes)
|
||||
|
||||
HADOOP-6161. Add get/setEnum methods to Configuration. (cdouglas)
|
||||
|
||||
HADOOP-6160. Fix releaseaudit target to run on specific directories.
|
||||
(gkesavan)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
HADOOP-5595. NameNode does not need to run a replicator to choose a
|
||||
|
21
build.xml
21
build.xml
@ -1013,12 +1013,19 @@
|
||||
<!-- ================================================================== -->
|
||||
<!-- Perform audit activities for the release -->
|
||||
<!-- ================================================================== -->
|
||||
<target name="releaseaudit" depends="package,ivy-retrieve-releaseaudit" description="Release Audit activities">
|
||||
<fail unless="rat.present" message="Failed to load class [${rat.reporting.classname}]."/>
|
||||
<java classname="${rat.reporting.classname}" fork="true">
|
||||
<classpath refid="releaseaudit-classpath"/>
|
||||
<arg value="${build.dir}/${final.name}"/>
|
||||
</java>
|
||||
<target name="rats-taskdef" depends="ivy-retrieve-releaseaudit">
|
||||
<typedef format="xml" resource="org/apache/rat/anttasks/antlib.xml" uri="antlib:org.apache.rat.anttasks"
|
||||
classpathref="releaseaudit-classpath"/>
|
||||
</target>
|
||||
|
||||
<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>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
@ -1278,8 +1285,6 @@
|
||||
<ivy:retrieve settingsRef="${ant.project.name}.ivy.settings"
|
||||
pattern="${build.ivy.lib.dir}/${ivy.artifact.retrieve.pattern}" />
|
||||
<ivy:cachepath pathid="releaseaudit-classpath" conf="releaseaudit"/>
|
||||
<available classname="${rat.reporting.classname}"
|
||||
classpathref="releaseaudit-classpath" property="rat.present" value="true"/>
|
||||
</target>
|
||||
|
||||
<target name="ivy-report" depends="ivy-resolve-releaseaudit"
|
||||
|
4
ivy.xml
4
ivy.xml
@ -228,8 +228,8 @@
|
||||
name="junit"
|
||||
rev="${junit.version}"
|
||||
conf="common->default"/>
|
||||
<dependency org="com.google.code.p.arat"
|
||||
name="rat-lib"
|
||||
<dependency org="org.apache.rat"
|
||||
name="apache-rat-tasks"
|
||||
rev="${rats-lib.version}"
|
||||
conf="releaseaudit->default"/>
|
||||
<dependency org="commons-lang"
|
||||
|
@ -61,7 +61,7 @@ mina-core.version=2.0.0-M5
|
||||
|
||||
oro.version=2.0.8
|
||||
|
||||
rats-lib.version=0.5.1
|
||||
rats-lib.version=0.6
|
||||
|
||||
servlet.version=4.0.6
|
||||
servlet-api-2.5.version=6.1.14
|
||||
|
Loading…
Reference in New Issue
Block a user