Skip to content

Commit 33bab4f

Browse files
committed
Fix Javadoc build error and ensure 'ant clean javadoc' works
1 parent 129d0be commit 33bab4f

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

build.properties.default

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,3 +298,16 @@ bnd.checksum.value=0dc5ff0af222ef075b5b0dd488f6aeac|0e542cf0f928107c17ce65f3c68d
298298
bnd.home=${base.path}/bnd-${bnd.version}
299299
bnd.jar=${bnd.home}/biz.aQute.bnd-${bnd.version}.jar
300300
bnd.loc=${base-maven.loc}/biz/aQute/bnd/biz.aQute.bnd/${bnd.version}/biz.aQute.bnd-${bnd.version}.jar
301+
302+
# ----- OSGi annotations bundle, version 1.0.0 or later -----
303+
# ----- required to avoid Javadoc error when using bnd annotations -----
304+
osgi-annotations.version=1.0.0
305+
306+
# checksums for biz.aQute.bnd-5.1.1.jar
307+
osgi-annotations.checksum.enabled=true
308+
osgi-annotations.checksum.algorithm=MD5|SHA-1
309+
osgi-annotations.checksum.value=153054f987534244f95a399539b11375|b6e802bceba0682353466abf8fadbbd662b2f7f8
310+
311+
osgi-annotations.home=${base.path}/osgi-annotations-${osgi-annotations.version}
312+
osgi-annotations.jar=${osgi-annotations.home}/org.osgi.annotation.bundle-${osgi-annotations.version}.jar
313+
osgi-annotations.loc=${base-maven.loc}/org/osgi/org.osgi.annotation.bundle/${osgi-annotations.version}/org.osgi.annotation.bundle-${osgi-annotations.version}.jar

build.xml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@
226226
<!-- Classpaths -->
227227
<path id="compile.classpath">
228228
<pathelement location="${bnd.jar}"/>
229+
<pathelement location="${osgi-annotations.jar}"/>
229230
<pathelement location="${jdt.jar}"/>
230231
<pathelement location="${saaj-api.jar}"/>
231232
<pathelement location="${jaxrpc-lib.jar}"/>
@@ -943,7 +944,7 @@
943944
</copy>
944945
</target>
945946

946-
<target name="compile" depends="download-compile,validate,setup-bnd">
947+
<target name="compile" depends="download-compile,validate">
947948
<!-- Compile internal server components -->
948949
<javac srcdir="java" destdir="${tomcat.classes}"
949950
debug="${compile.debug}"
@@ -2178,7 +2179,7 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform.
21782179

21792180
</target>
21802181

2181-
<target name="javadoc" depends="dist-source"
2182+
<target name="javadoc" depends="dist-source,download-compile"
21822183
description="Create the Tomcat javadoc" >
21832184
<javadoc packagenames="jakarta.annotation.*"
21842185
sourcepath="${tomcat.dist}/src/java"
@@ -2324,6 +2325,7 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform.
23242325
<classpath>
23252326
<path refid="compile.classpath"/>
23262327
<path location="${ant.core.lib}"/>
2328+
<path location="${osgi-annotations.jar}"/>
23272329
</classpath>
23282330
<link href="../annotationapi"/>
23292331
<link href="../servletapi"/>
@@ -3059,7 +3061,8 @@ skip.installer property in build.properties" />
30593061
</target>
30603062

30613063
<target name="download-compile"
3062-
description="Download components necessary to compile" >
3064+
description="Download components necessary to compile"
3065+
depends="setup-bnd">
30633066

30643067
<!-- Download Commons Daemon -->
30653068
<antcall target="downloadgz-2">
@@ -3604,6 +3607,15 @@ Read the Building page on the Apache Tomcat documentation site for details on ho
36043607
<param name="checksum.algorithm" value="${bnd.checksum.algorithm}"/>
36053608
<param name="checksum.value" value="${bnd.checksum.value}"/>
36063609
</antcall>
3610+
<!-- Download OSGi annotations -->
3611+
<antcall target="downloadfile">
3612+
<param name="sourcefile" value="${osgi-annotations.loc}"/>
3613+
<param name="destfile" value="${osgi-annotations.jar}"/>
3614+
<param name="destdir" value="${osgi-annotations.home}"/>
3615+
<param name="checksum.enabled" value="${osgi-annotations.checksum.enabled}"/>
3616+
<param name="checksum.algorithm" value="${osgi-annotations.checksum.algorithm}"/>
3617+
<param name="checksum.value" value="${osgi-annotations.checksum.value}"/>
3618+
</antcall>
36073619
</target>
36083620

36093621
<target name="setup-bnd" depends="download-bnd">

0 commit comments

Comments
 (0)