[
https://issues.apache.org/jira/browse/LUCENE-7651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15833417#comment-15833417
]
Uwe Schindler commented on LUCENE-7651:
---------------------------------------
This implements first option:
{noformat}
lucene/common-build.xml | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/lucene/common-build.xml b/lucene/common-build.xml
index 48cf457..61948bb 100644
--- a/lucene/common-build.xml
+++ b/lucene/common-build.xml
@@ -2107,20 +2107,6 @@
${ant.project.name}.test.dependencies=${test.classpath.list}
<link offline="true" href="${javadoc.link}"
packagelistLoc="${javadoc.packagelist.dir}/java8"/>
<bottom><![CDATA[
<i>Copyright © ${year} Apache Software Foundation. All Rights
Reserved.</i>
- <script src='{@docRoot}/prettify.js' type='text/javascript'></script>
- <script type='text/javascript'>
- (function(){
- var oldonload = window.onload;
- if (typeof oldonload != 'function') {
- window.onload = prettyPrint;
- } else {
- window.onload = function() {
- oldonload();
- prettyPrint();
- }
- }
- })();
- </script>
]]></bottom>
<sources />
{noformat}
I checked our sources. We allready append the CSS of prettify to Javadocs's
main CSS files. As Java 8 contains also a Javadocs-generated scripts.js file,
we could do the same here. I am working on that...
> Javadocs build fails with Java 8 update 121
> -------------------------------------------
>
> Key: LUCENE-7651
> URL: https://issues.apache.org/jira/browse/LUCENE-7651
> Project: Lucene - Core
> Issue Type: Bug
> Components: general/javadocs
> Affects Versions: 6.4
> Environment: Java 8 update 121
> Reporter: Uwe Schindler
> Assignee: Uwe Schindler
> Priority: Critical
> Labels: Java8
>
> Oracle released the recent Java 8 security update (u121). The Jenkins builds
> fail with the following error while building the Javadocs:
> {noformat}
> [javadoc] Constructing Javadoc information...
> [javadoc] javadoc: error - Argument for -bottom contains JavaScript.
> [javadoc] Use --allow-script-in-comments to allow use of JavaScript.
> [javadoc] 1 error
> {noformat}
> This is caused by the Javascript added to pretty-print code examples. We load
> this in the page footer "{{<bottom>}}" parameter.
> Surely, it will be posisble to simply add the mentioned argument, but this
> will break builds with earlier Java 8 versions.
> This is nowhere documented, I haven't seen any documentation about this flag
> nowhere, so I assume this is a bug in Java. They can't change or add command
> line parameters in minor updates of Java 8. I will ask on the OpenJDK mailing
> lists if this is a bug (maybe accidentally backported from Java 9).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]