[
https://issues.apache.org/jira/browse/LUCENE-4362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451387#comment-13451387
]
Erick Erickson commented on LUCENE-4362:
----------------------------------------
Robert:
You're right in that a number of tabs are introduced into the generated files,
I'll leave those for another day.
So, I didn't change any of the .java files that had a corresponding .jj or
.jflex file, but I did try to run the "ant jflex" target in
lucene/analysis/common after taking out all the tabs in the .jj or .jflex
files. I figure that that's worth doing separate from fixing the injected tabs.
Unfortunately I keep getting
jflex-UAX29URLEmailTokenizer:
[jflex]
[jflex] Error: JFlex has run out of memory. Please try increasing the
maximum JVM heap size
[jflex]
. What's the magic to increase the JVM heap? Or should I just not bother?
I tried setting ANT_OPTS JAVA_OPTS, changing the jflex script in
<jflex_home>/jflex/bin to $JAVA -Xmx2G JFlex.Main $@, and I keep getting the
same error. Which means there's an incredibly simple way to do this that I
don't know about......
Any hints?
> ban tab-indented source
> -----------------------
>
> Key: LUCENE-4362
> URL: https://issues.apache.org/jira/browse/LUCENE-4362
> Project: Lucene - Core
> Issue Type: Task
> Reporter: Robert Muir
> Assignee: Erick Erickson
> Attachments: LUCENE-4362_core.patch, LUCENE-4362.patch,
> LUCENE-4362.patch
>
>
> This makes code really difficult to read and work with.
> Its easy enough to prevent.
> {noformat}
> Index: build.xml
> ===================================================================
> --- build.xml (revision 1380979)
> +++ build.xml (working copy)
> @@ -77,11 +77,12 @@
> <or>
> <containsregexp expression="@author\b" casesensitive="yes"/>
> <containsregexp expression="\bno(n|)commit\b" casesensitive="no"/>
> + <containsregexp expression="\t" casesensitive="no"/>
> </or>
> </fileset>
> <map from="${validate.currDir}${file.separator}" to="* "/>
> </pathconvert>
> - <fail if="validate.patternsFound">The following files contain @author
> tags or nocommits:${line.separator}${validate.patternsFound}</fail>
> + <fail if="validate.patternsFound">The following files contain @author
> tags, tabs or nocommits:${line.separator}${validate.patternsFound}</fail>
> </target>
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]