You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Jack Krupansky <ja...@basetechnology.com> on 2012/06/08 19:47:50 UTC

Spurious JFlex warning from build

I happened to notice the following message in an ant test today:

compile-test:
     [echo] Building analyzers-common...
jflex-uptodate-check:
jflex-notice:
     [echo]       One or more of the JFlex .jflex files is newer than its corresponding
     [echo]       .java file.  Run the "jflex" target to regenerate the artifacts.

It is a spurious warning/directive because HTMLCharacterEntities.jflex doesn’t have a matching .java file since it is a “macro” referenced by HTMLStripCharFilter.jflex.

I am wondering if it makes sense to rename HTMLCharacterEntities.jflex to HTMLCharacterEntities.jflex-macro (like HTMLStripCharFilter.SUPPLEMENTARY.jflex-macro) to avoid the misleading build warning/directive.

-- Jack Krupansky

RE: Spurious JFlex warning from build

Posted by Steven A Rowe <sa...@syr.edu>.
+1

From: Jack Krupansky [mailto:jack@basetechnology.com]
Sent: Friday, June 08, 2012 1:48 PM
To: Lucene/Solr Dev
Subject: Spurious JFlex warning from build

I happened to notice the following message in an ant test today:

compile-test:
     [echo] Building analyzers-common...
jflex-uptodate-check:
jflex-notice:
     [echo]       One or more of the JFlex .jflex files is newer than its corresponding
     [echo]       .java file.  Run the "jflex" target to regenerate the artifacts.

It is a spurious warning/directive because HTMLCharacterEntities.jflex doesn’t have a matching .java file since it is a “macro” referenced by HTMLStripCharFilter.jflex.

I am wondering if it makes sense to rename HTMLCharacterEntities.jflex to HTMLCharacterEntities.jflex-macro (like HTMLStripCharFilter.SUPPLEMENTARY.jflex-macro) to avoid the misleading build warning/directive.

-- Jack Krupansky