mirror of https://github.com/apache/lucene.git
Fix CRLF problem with running python on windows /and/or cygwin when creating java source files. Also fix broken generated license header.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1359275 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d4522d1016
commit
2f123d1209
|
@ -61,6 +61,7 @@
|
||||||
executable="${python.exe}" failonerror="true" logerror="true">
|
executable="${python.exe}" failonerror="true" logerror="true">
|
||||||
<arg value="htmlentity.py"/>
|
<arg value="htmlentity.py"/>
|
||||||
</exec>
|
</exec>
|
||||||
|
<fixcrlf file="src/java/org/apache/lucene/analysis/charfilter/HTMLCharacterEntities.jflex" encoding="UTF-8"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="jflex-wiki-tokenizer" depends="init,jflex-check" if="jflex.present">
|
<target name="jflex-wiki-tokenizer" depends="init,jflex-check" if="jflex.present">
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package org.apache.lucene.analysis.charfilter;
|
package org.apache.lucene.analysis.charfilter;
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
* contributor license agreements. See the NOTICE file distributed with
|
* contributor license agreements. See the NOTICE file distributed with
|
||||||
* this work for additional information regarding copyright ownership.
|
* this work for additional information regarding copyright ownership.
|
||||||
|
|
|
@ -68,6 +68,7 @@
|
||||||
executable="${python.exe}" failonerror="true">
|
executable="${python.exe}" failonerror="true">
|
||||||
<arg line="createLevAutomata.py @{n} False"/>
|
<arg line="createLevAutomata.py @{n} False"/>
|
||||||
</exec>
|
</exec>
|
||||||
|
<fixcrlf srcdir="src/java/org/apache/lucene/util/automaton" includes="*ParametricDescription.java" encoding="UTF-8"/>
|
||||||
</sequential>
|
</sequential>
|
||||||
</macrodef>
|
</macrodef>
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,7 @@ def main():
|
||||||
|
|
||||||
w('package org.apache.lucene.util.automaton;')
|
w('package org.apache.lucene.util.automaton;')
|
||||||
w('')
|
w('')
|
||||||
w('/**')
|
w('/*')
|
||||||
w(' * Licensed to the Apache Software Foundation (ASF) under one or more')
|
w(' * Licensed to the Apache Software Foundation (ASF) under one or more')
|
||||||
w(' * contributor license agreements. See the NOTICE file distributed with')
|
w(' * contributor license agreements. See the NOTICE file distributed with')
|
||||||
w(' * this work for additional information regarding copyright ownership.')
|
w(' * this work for additional information regarding copyright ownership.')
|
||||||
|
|
Loading…
Reference in New Issue