Rabea Gransberger wrote:
> Hello everybody,
>
> There's a bug in ANTLR Tool which I found when using the Maven plugin which
> always states that my grammar files are up to date which is not the case.
>
> I've looked into the source of the Tool.java and found an error in the
> method buildRequired. In line 346 the grammar file is created by File
> grammarFile = new File(grammarFileName); but the grammar files are given
> relative to the input directory. Therefore it should be something like File
> grammarFile = new File(inputDirectory,grammarFileName);
>
> Afterwards there should be a check if the file exists, because otherwise
> grammarFile.lastModified() will return 0 and this is never bigger than the
> output file time. This is why I always get the message that my files are up
> to date..
>
> Hope someone could fix this soon and update the dependency of the maven
> plugin, because it takes me much time to always execute a maven clean build
> in order to get the grammar compiled correctly.
>   
Yes, I am aware of this, it was broken at the last minute and I missed 
it. It is on my list of thigns to do.

Jim
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to