mirror of https://github.com/apache/lucene.git
LUCENE-814: javacc build targets now fix line-end-style of generated
files, and deleting all javacc generated files before calling javacc. git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@517863 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1159f9a768
commit
d4e406ad22
|
@ -66,6 +66,10 @@ Bug fixes
|
|||
is consumed. Now a ParseException is thrown if a query contains too many
|
||||
closing parentheses. (Andreas Neumann via Michael Busch)
|
||||
|
||||
9. LUCENE-814: javacc build targets now fix line-end-style of generated files.
|
||||
Now also deleting all javacc generated files before calling javacc.
|
||||
(Steven Parkes, Doron Cohen)
|
||||
|
||||
New features
|
||||
|
||||
1. LUCENE-759: Added two n-gram-producing TokenFilters.
|
||||
|
|
15
build.xml
15
build.xml
|
@ -287,12 +287,15 @@
|
|||
|
||||
<target name="clean-javacc">
|
||||
<delete>
|
||||
<fileset dir="src">
|
||||
<include name="java/org/apache/lucene/analysis/standard/StandardTokenizer.java"/>
|
||||
<include name="java/org/apache/lucene/queryParser/QueryParser.java"/>
|
||||
<include name="java/org/apache/lucene/queryParser/CharStream.java"/>
|
||||
<include name="demo/org/apache/lucene/demo/html/HTMLParser.java"/>
|
||||
<include name="demo/org/apache/lucene/demo/html/SimpleCharStream.java"/>
|
||||
<fileset dir="src/java/org/apache/lucene/analysis/standard" includes="*.java">
|
||||
<containsregexp expression="Generated.*By.*JavaCC"/>
|
||||
<exclude name="ParseException.java"/>
|
||||
</fileset>
|
||||
<fileset dir="src/java/org/apache/lucene/queryParser" includes="*.java">
|
||||
<containsregexp expression="Generated.*By.*JavaCC"/>
|
||||
</fileset>
|
||||
<fileset dir="src/demo/org/apache/lucene/demo/html" includes="*.java">
|
||||
<containsregexp expression="Generated.*By.*JavaCC"/>
|
||||
</fileset>
|
||||
</delete>
|
||||
</target>
|
||||
|
|
|
@ -307,6 +307,9 @@
|
|||
debuglookahead="${javacc.debug.lookahead}"
|
||||
javacchome="${javacc.home}"
|
||||
/>
|
||||
<fixcrlf srcdir="@{outputDir}" includes="*.java">
|
||||
<containsregexp expression="Generated.*By.*JavaCC"/>
|
||||
</fixcrlf>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 0.7pre6 */
|
||||
package org.apache.lucene.analysis.standard;
|
||||
|
||||
/* Note: This file was also manually modified.
|
||||
* Regenerating it by JavaCC might undo these changes!. */
|
||||
|
||||
/**
|
||||
* This exception is thrown when parse errors are encountered.
|
||||
* You can explicitly create objects of this exception type by
|
||||
|
|
Loading…
Reference in New Issue