Apache Lucene open-source search software
Fix CRLF problem with running python on windows /and/or cygwin when creating java source files. Also fix broken generated license header.
Uwe Schindler2f123d120967
diff --git a/lucene/analysis/common/build.xml b/lucene/analysis/common/build.xmlindex b789b258b09..dadf374bc14 100644--- a/lucene/analysis/common/build.xml+++ b/lucene/analysis/common/build.xml@@ -61,6 +61,7 @@executable="${python.exe}" failonerror="true" logerror="true"><arg value="htmlentity.py"/></exec>+ <fixcrlf file="src/java/org/apache/lucene/analysis/charfilter/HTMLCharacterEntities.jflex" encoding="UTF-8"/></target><target name="jflex-wiki-tokenizer" depends="init,jflex-check" if="jflex.present">diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.jflex b/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.jflexindex 3c9116b8440..3e384b10068 100755--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.jflex+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.jflex@@ -1,6 +1,6 @@package org.apache.lucene.analysis.charfilter;-/**+/** Licensed to the Apache Software Foundation (ASF) under one or more* contributor license agreements. See the NOTICE file distributed with* this work for additional information regarding copyright ownership.diff --git a/lucene/core/build.xml b/lucene/core/build.xmlindex e5d7f1de170..bf60a895bd8 100644--- a/lucene/core/build.xml+++ b/lucene/core/build.xml@@ -68,6 +68,7 @@executable="${python.exe}" failonerror="true"><arg line="createLevAutomata.py @{n} False"/></exec>+ <fixcrlf srcdir="src/java/org/apache/lucene/util/automaton" includes="*ParametricDescription.java" encoding="UTF-8"/></sequential></macrodef>diff --git a/lucene/core/src/java/org/apache/lucene/util/automaton/createLevAutomata.py b/lucene/core/src/java/org/apache/lucene/util/automaton/createLevAutomata.pyindex 453daffd657..982421e236c 100644--- a/lucene/core/src/java/org/apache/lucene/util/automaton/createLevAutomata.py+++ b/lucene/core/src/java/org/apache/lucene/util/automaton/createLevAutomata.py@@ -121,7 +121,7 @@ def main():w('package org.apache.lucene.util.automaton;')w('')- w('/**')+ w('/*')w(' * Licensed to the Apache Software Foundation (ASF) under one or more')w(' * contributor license agreements. See the NOTICE file distributed with')w(' * this work for additional information regarding copyright ownership.')