dev-java/lucene-2.3.2 is a USE=java dependency of app-office/openoffice-3.1.1. The attached patch prefixifies the javacc path for ant.
Created attachment 218095 [details, diff] lucene.patch
(Tested on amd64-linux)
imported, thanks