Apache Lucene open-source search software
Try again to fix precommit on Windows with native line endings
Steve Rowe1a3295fb0077
diff --git a/build.xml b/build.xmlold mode 100644new mode 100755index 1176dc7dbad..79326e97d17--- a/build.xml+++ b/build.xml@@ -208,17 +208,16 @@def lineNumber = 0;singleLineSplitter.split(text).each {++lineNumber;- it.trim(); // remove trailing carriage return after split on Windows with native line endingsif (underSourceHeader) { // This line is either a single source line, or the boundary of a code blockinCodeBlock = blockBoundaryPattern.matcher(it).matches();- if ( ! blockTitlePattern.matcher(it).matches()) { // Keep underSourceHeader=true+ if ( ! blockTitlePattern.matcher(it).matches()) {underSourceHeader = false;}} else {if (inCodeBlock) {inCodeBlock = ! blockBoundaryPattern.matcher(it).matches();} else {- underSourceHeader = sourceHeaderPattern.matcher(it).matches();+ underSourceHeader = sourceHeaderPattern.matcher(it).lookingAt();if ( ! underSourceHeader) {def unescapedSymbolMatcher = unescapedSymbolPattern.matcher(it);if (unescapedSymbolMatcher.find()) {