mirror of https://github.com/apache/lucene.git
SOLR-8535: Support forcing define-lucene-javadoc-url to be local
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1724520 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f6ede1b42f
commit
b904599036
|
@ -508,6 +508,8 @@ Other Changes
|
|||
|
||||
* SOLR-8476: Refactor and cleanup CoreAdminHandler (noble, Varun Thacker)
|
||||
|
||||
* SOLR-8535: Support forcing define-lucene-javadoc-url to be local (Gregory Chanan)
|
||||
|
||||
================== 5.4.1 ==================
|
||||
|
||||
Bug Fixes
|
||||
|
|
|
@ -331,9 +331,11 @@
|
|||
</macrodef>
|
||||
|
||||
<target name="define-lucene-javadoc-url" depends="resolve-groovy" unless="lucene.javadoc.url">
|
||||
<property name="useLocalJavadocUrl" value=""/>
|
||||
<groovy><![CDATA[
|
||||
String url, version = properties['version'];
|
||||
if (version.contains('-SNAPSHOT')) {
|
||||
String useLocalJavadocUrl = properties['useLocalJavadocUrl'];
|
||||
if (version.contains('-SNAPSHOT') || Boolean.parseBoolean(useLocalJavadocUrl)) {
|
||||
url = new File(properties['common.dir'], 'build' + File.separator + 'docs').toURI().toASCIIString();
|
||||
if (!(url =~ /\/$/)) url += '/';
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue