HADOOP-11776. Fixed the broken JDiff support in Hadoop 2. Contributed by Li Lu.

(cherry picked from commit 4b3948ea36)
This commit is contained in:
Vinod Kumar Vavilapalli 2015-04-04 13:52:01 -07:00
parent 996b0ca173
commit 5387a289fc
5 changed files with 65137 additions and 7 deletions

View File

@ -721,6 +721,8 @@ Release 2.7.0 - UNRELEASED
HADOOP-11377. Added Null.java without which jdiff completely flops. (Tsuyoshi
Ozawa via vinodkv)
HADOOP-11776. Fixed the broken JDiff support in Hadoop 2. (Li Lu via vinodkv)
Release 2.6.1 - UNRELEASED

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -165,8 +165,10 @@
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<jdiff.stable.api>0.20.2</jdiff.stable.api>
<jdiff.stable.api>2.6.0</jdiff.stable.api>
<jdiff.stability>-unstable</jdiff.stability>
<!-- Commented out for HADOOP-11776 -->
<!-- Uncomment param name="${jdiff.compatibility}" in javadoc doclet if compatibility is not empty -->
<jdiff.compatibility></jdiff.compatibility>
<jdiff.javadoc.maxmemory>512m</jdiff.javadoc.maxmemory>
</properties>
@ -227,6 +229,14 @@
<outputDirectory>${project.build.directory}</outputDirectory>
<destFileName>hadoop-annotations.jar</destFileName>
</artifactItem>
<artifactItem>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>${xerces.jdiff.version}</version>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}</outputDirectory>
<destFileName>xerces.jar</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
@ -276,7 +286,7 @@
<doclet name="org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsJDiffDoclet"
path="${project.build.directory}/hadoop-annotations.jar:${project.build.directory}/jdiff.jar">
<param name="-apidir" value="${project.build.directory}/site/jdiff/xml"/>
<param name="-apiname" value="hadoop-core ${project.version}"/>
<param name="-apiname" value="${project.name} ${project.version}"/>
<param name="${jdiff.stability}"/>
</doclet>
<packageset dir="${basedir}/src/main/java"/>
@ -289,17 +299,17 @@
sourceFiles="${basedir}/dev-support/jdiff/Null.java"
maxmemory="${jdiff.javadoc.maxmemory}">
<doclet name="org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsJDiffDoclet"
path="${project.build.directory}/hadoop-annotations.jar:${project.build.directory}/jdiff.jar">
<param name="-oldapi" value="hadoop-core ${jdiff.stable.api}"/>
<param name="-newapi" value="hadoop-core ${project.version}"/>
path="${project.build.directory}/hadoop-annotations.jar:${project.build.directory}/jdiff.jar:${project.build.directory}/xerces.jar">
<param name="-oldapi" value="${project.name} ${jdiff.stable.api}"/>
<param name="-newapi" value="${project.name} ${project.version}"/>
<param name="-oldapidir" value="${basedir}/dev-support/jdiff"/>
<param name="-newapidir" value="${project.build.directory}/site/jdiff/xml"/>
<param name="-javadocold"
value="http://hadoop.apache.org/docs/${jdiff.stable.api}/api/"/>
value="http://hadoop.apache.org/docs/r${jdiff.stable.api}/api/"/>
<param name="-javadocnew" value="${project.build.directory}/site/api"/>
<param name="-stats"/>
<param name="${jdiff.stability}"/>
<param name="${jdiff.compatibility}"/>
<!--param name="${jdiff.compatibility}"/-->
</doclet>
<classpath>
<path refid="maven.compile.classpath"/>

View File

@ -42,6 +42,8 @@
<!-- These 2 versions are defined here becuase they are used -->
<!-- JDIFF generation from embedded ant in the antrun plugin -->
<jdiff.version>1.0.9</jdiff.version>
<!-- Version number for xerces used by JDiff -->
<xerces.jdiff.version>2.11.0</xerces.jdiff.version>
<hadoop.assemblies.version>${project.version}</hadoop.assemblies.version>