dweiss commented on a change in pull request #1488: URL: https://github.com/apache/lucene-solr/pull/1488#discussion_r421333692
########## File path: gradle/render-javadoc.gradle ########## @@ -57,20 +57,11 @@ configure(subprojects.findAll { it.path.startsWith(':lucene') && it.path != ':lu doLast { // fix for Java 11 Javadoc tool that cannot handle split packages between modules correctly (by removing all the packages which are part of lucene-core) // problem description: [https://issues.apache.org/jira/browse/LUCENE-8738?focusedCommentId=16818106&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16818106] - ant.local(name: "element-list-regex") // contains a regex for all package names which are in lucene-core's javadoc - ant.loadfile(property: "element-list-regex", srcFile: "${project(':lucene:core').tasks[name].outputDir}/element-list", encoding: "utf-8") { - filterchain { - tokenfilter(delimoutput: "|") { - replacestring(from: ".", to: "\\.") - } - } - } - ant.replaceregexp( - encoding: "UTF-8", - file: "${project.javadoc.destinationDir}/element-list", - byline: "true", - match: "^(\${element-list-regex})\$", - replace: "") + Set luceneCorePackages = file("${project(':lucene:core').tasks[name].outputDir}/element-list").readLines('UTF-8').toSet(); + File elementFile = file("${outputDir}/element-list"); + List elements = elementFile.readLines('UTF-8'); + elements.removeAll{ luceneCorePackages.contains(it) } + elementFile.write(elements.join('\n').concat('\n'), 'UTF-8'); Review comment: Nice! ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org