Skip to content

Commit 81c2009

Browse files
Revert "Work around javadoc bug to provide locale in two separate ways"
This reverts commit b770297. This workaround for javadoc locale is not necessary in any of the versions we currently use for releases.
1 parent 89200a3 commit 81c2009

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

build.xml

-41
Original file line numberDiff line numberDiff line change
@@ -2241,33 +2241,6 @@
22412241

22422242
<target name="javadoc" depends="dist-source,download-compile"
22432243
description="Create the Tomcat javadoc" >
2244-
<!-- Due to https://bugs.openjdk.org/browse/JDK-8222793
2245-
we will need to provide the locale to the javadoc
2246-
command in two ways: via "locale" attribute
2247-
(which becomes "-locale [locale]" on the command-line)
2248-
and also via "<arg>-Juser.language</arg>" and one for country.
2249-
2250-
In order to simplify things for users, we will pick-apart the
2251-
javadoc.locale property into its separate components, here.
2252-
-->
2253-
<loadresource property="javadoc.language">
2254-
<concat>${javadoc.locale}</concat>
2255-
<filterchain>
2256-
<replaceregex pattern="_.*" replace="" />
2257-
</filterchain>
2258-
</loadresource>
2259-
<loadresource property="javadoc.country">
2260-
<concat>${javadoc.locale}</concat>
2261-
<filterchain>
2262-
<replaceregex pattern="[^_]*" replace="" />
2263-
<replaceregex pattern="^\$.*" replace="" />
2264-
</filterchain>
2265-
</loadresource>
2266-
2267-
<!-- Establish some defaults in case the above didn't work or resulted in empty properties -->
2268-
<property name="javadoc.language" value="en" />
2269-
<property name="javadoc.country" value="" />
2270-
22712244
<javadoc packagenames="jakarta.annotation.*"
22722245
sourcepath="${tomcat.dist}/src/java"
22732246
destdir="${tomcat.dist}/webapps/docs/annotationapi"
@@ -2288,8 +2261,6 @@
22882261
maxmemory="512m"
22892262
failonerror="${javadoc.failonerror}"
22902263
failonwarning="${javadoc.failonwarning}">
2291-
<arg value="-J-Duser.language=${javadoc.language}" />
2292-
<arg value="-J-Duser.country=${javadoc.country}" />
22932264
<classpath>
22942265
<path refid="compile.classpath"/>
22952266
<path location="${ant.core.lib}"/>
@@ -2316,8 +2287,6 @@
23162287
maxmemory="512m"
23172288
failonerror="${javadoc.failonerror}"
23182289
failonwarning="${javadoc.failonwarning}">
2319-
<arg value="-J-Duser.language=${javadoc.language}" />
2320-
<arg value="-J-Duser.country=${javadoc.country}" />
23212290
<classpath>
23222291
<path refid="compile.classpath"/>
23232292
<path location="${ant.core.lib}"/>
@@ -2343,8 +2312,6 @@
23432312
maxmemory="512m"
23442313
failonerror="${javadoc.failonerror}"
23452314
failonwarning="${javadoc.failonwarning}">
2346-
<arg value="-J-Duser.language=${javadoc.language}" />
2347-
<arg value="-J-Duser.country=${javadoc.country}" />
23482315
<classpath>
23492316
<path refid="compile.classpath"/>
23502317
<path location="${ant.core.lib}"/>
@@ -2370,8 +2337,6 @@
23702337
maxmemory="512m"
23712338
failonerror="${javadoc.failonerror}"
23722339
failonwarning="${javadoc.failonwarning}">
2373-
<arg value="-J-Duser.language=${javadoc.language}" />
2374-
<arg value="-J-Duser.country=${javadoc.country}" />
23752340
<classpath>
23762341
<path refid="compile.classpath"/>
23772342
<path location="${ant.core.lib}"/>
@@ -2397,8 +2362,6 @@
23972362
maxmemory="512m"
23982363
failonerror="${javadoc.failonerror}"
23992364
failonwarning="${javadoc.failonwarning}">
2400-
<arg value="-J-Duser.language=${javadoc.language}" />
2401-
<arg value="-J-Duser.country=${javadoc.country}" />
24022365
<classpath>
24032366
<path refid="compile.classpath"/>
24042367
<path location="${ant.core.lib}"/>
@@ -2423,8 +2386,6 @@
24232386
maxmemory="512m"
24242387
failonerror="${javadoc.failonerror}"
24252388
failonwarning="${javadoc.failonwarning}">
2426-
<arg value="-J-Duser.language=${javadoc.language}" />
2427-
<arg value="-J-Duser.country=${javadoc.country}" />
24282389
<classpath>
24292390
<path refid="compile.classpath"/>
24302391
<path location="${ant.core.lib}"/>
@@ -2449,8 +2410,6 @@
24492410
maxmemory="512m"
24502411
failonerror="${javadoc.failonerror}"
24512412
failonwarning="${javadoc.failonwarning}">
2452-
<arg value="-J-Duser.language=${javadoc.language}" />
2453-
<arg value="-J-Duser.country=${javadoc.country}" />
24542413
<classpath>
24552414
<path refid="compile.classpath"/>
24562415
<path location="${ant.core.lib}"/>

0 commit comments

Comments
 (0)