Apache Solr open-source search software
Make scripts more Groovy (remove relicts from JavaScript)
Uwe Schindler4bfb6bf3470c
diff --git a/extra-targets.xml b/extra-targets.xmlindex e160bd1698a..60db422bc96 100644--- a/extra-targets.xml+++ b/extra-targets.xml@@ -108,7 +108,7 @@} as ISVNPropertyHandler);def convertSet2String = {- set -> set.isEmpty() ? null : ('* ' + set.toArray().join(project.getProperty('line.separator') + '* '))+ set -> set ? ('* ' + set.join(project.getProperty('line.separator') + '* ')) : null};project.setProperty('svn.checkprops.failed', convertSet2String(missingProps));project.setProperty('svn.unversioned.failed', convertSet2String(unversioned));diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex bc54c963a04..bb6e90872aa 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -1859,9 +1859,8 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites);StringBuilder html = new StringBuilder('<html>\n<head>\n');// match the first heading in markdown and use as title:- def matcher = (markdownSource =~ /(?m)^#+\s*(.+)$/);- if (matcher.find()) {- html.append('<title>').append(FastEncoder.encode(matcher.group(1))).append('</title>\n');+ markdownSource.find(~/(?m)^#+\s*(.+)$/) {+ match, title -> html.append('<title>').append(FastEncoder.encode(title)).append('</title>\n');}html.append('<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n').append('</head>\n<body>\n')