|
2241 | 2241 |
|
2242 | 2242 | <target name="javadoc" depends="dist-source,download-compile"
|
2243 | 2243 | 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 |
| - |
2271 | 2244 | <javadoc packagenames="jakarta.annotation.*"
|
2272 | 2245 | sourcepath="${tomcat.dist}/src/java"
|
2273 | 2246 | destdir="${tomcat.dist}/webapps/docs/annotationapi"
|
|
2288 | 2261 | maxmemory="512m"
|
2289 | 2262 | failonerror="${javadoc.failonerror}"
|
2290 | 2263 | failonwarning="${javadoc.failonwarning}">
|
2291 |
| - <arg value="-J-Duser.language=${javadoc.language}" /> |
2292 |
| - <arg value="-J-Duser.country=${javadoc.country}" /> |
2293 | 2264 | <classpath>
|
2294 | 2265 | <path refid="compile.classpath"/>
|
2295 | 2266 | <path location="${ant.core.lib}"/>
|
|
2316 | 2287 | maxmemory="512m"
|
2317 | 2288 | failonerror="${javadoc.failonerror}"
|
2318 | 2289 | failonwarning="${javadoc.failonwarning}">
|
2319 |
| - <arg value="-J-Duser.language=${javadoc.language}" /> |
2320 |
| - <arg value="-J-Duser.country=${javadoc.country}" /> |
2321 | 2290 | <classpath>
|
2322 | 2291 | <path refid="compile.classpath"/>
|
2323 | 2292 | <path location="${ant.core.lib}"/>
|
|
2343 | 2312 | maxmemory="512m"
|
2344 | 2313 | failonerror="${javadoc.failonerror}"
|
2345 | 2314 | failonwarning="${javadoc.failonwarning}">
|
2346 |
| - <arg value="-J-Duser.language=${javadoc.language}" /> |
2347 |
| - <arg value="-J-Duser.country=${javadoc.country}" /> |
2348 | 2315 | <classpath>
|
2349 | 2316 | <path refid="compile.classpath"/>
|
2350 | 2317 | <path location="${ant.core.lib}"/>
|
|
2370 | 2337 | maxmemory="512m"
|
2371 | 2338 | failonerror="${javadoc.failonerror}"
|
2372 | 2339 | failonwarning="${javadoc.failonwarning}">
|
2373 |
| - <arg value="-J-Duser.language=${javadoc.language}" /> |
2374 |
| - <arg value="-J-Duser.country=${javadoc.country}" /> |
2375 | 2340 | <classpath>
|
2376 | 2341 | <path refid="compile.classpath"/>
|
2377 | 2342 | <path location="${ant.core.lib}"/>
|
|
2397 | 2362 | maxmemory="512m"
|
2398 | 2363 | failonerror="${javadoc.failonerror}"
|
2399 | 2364 | failonwarning="${javadoc.failonwarning}">
|
2400 |
| - <arg value="-J-Duser.language=${javadoc.language}" /> |
2401 |
| - <arg value="-J-Duser.country=${javadoc.country}" /> |
2402 | 2365 | <classpath>
|
2403 | 2366 | <path refid="compile.classpath"/>
|
2404 | 2367 | <path location="${ant.core.lib}"/>
|
|
2423 | 2386 | maxmemory="512m"
|
2424 | 2387 | failonerror="${javadoc.failonerror}"
|
2425 | 2388 | failonwarning="${javadoc.failonwarning}">
|
2426 |
| - <arg value="-J-Duser.language=${javadoc.language}" /> |
2427 |
| - <arg value="-J-Duser.country=${javadoc.country}" /> |
2428 | 2389 | <classpath>
|
2429 | 2390 | <path refid="compile.classpath"/>
|
2430 | 2391 | <path location="${ant.core.lib}"/>
|
|
2449 | 2410 | maxmemory="512m"
|
2450 | 2411 | failonerror="${javadoc.failonerror}"
|
2451 | 2412 | failonwarning="${javadoc.failonwarning}">
|
2452 |
| - <arg value="-J-Duser.language=${javadoc.language}" /> |
2453 |
| - <arg value="-J-Duser.country=${javadoc.country}" /> |
2454 | 2413 | <classpath>
|
2455 | 2414 | <path refid="compile.classpath"/>
|
2456 | 2415 | <path location="${ant.core.lib}"/>
|
|
0 commit comments