Anders, I don't have a user for http://jira.codehaus.org/browse/MJAVACC. I'm not really familiar with codehaus way so .. how do I do that ?
And come to think of it I would like to submit a patch which might address another thing - the plugin does not provide the ability to keep generated code inside the src/main/java source folder. When you regenerate it will 'asume' that any code inside src/main/java has been modified by you. To validate that it should normally check against the checksum: */* JavaCC - OriginalChecksum=0edcd6a9b94854a7086219ed843b5c28 (do not edit this line) */* Victor On Fri, Apr 25, 2014 at 11:37 AM, Anders Hammar <and...@hammar.net> wrote: > The best way to handle this is to report a bug: > http://mojo.codehaus.org/javacc-maven-plugin/issue-tracking.html > > You need to create a user account in Codehaus Xircles to log in to Jira. > > I advocate a three-step process (each step will increase the likelyhood of > getting it fixed): > 1. Report the bug with a good description > 2. Provide a small project to reproduce (attach to ticket) > 3. Create a patch to fix the issue (attach to ticket) > > /Anders > > > On Fri, Apr 25, 2014 at 9:57 AM, Victor Bucutea > <victor.bucu...@gmail.com>wrote: > >> Hey there! >> >> Very nice work on the javacc-mvn plugin! >> >> I stumbled however on a bug related to the output directoty of the >> generated jjtree. Now I might be missinterpreting the help documentation >> and if so please tell me how I should fix it. >> >> I've set up a small git for cloning: >> https://github.com/victorbucutea/javacc-bug >> If i run : >> >> *mvn generate-sources * >> >> I get the *jjtree *in the target/jjtree and the *parser classes * in the >> src/main/java folder. >> >> I expected to see both the *jjtree and parser classes * in the >> src/main/java folder ( of course in the corresponding package), because >> that's the way it's configured in pom.xml : >> >> * <execution>* >> * <id>javacc</id>* >> * <goals>* >> * <goal>jjtree-javacc</goal>* >> * </goals>* >> * <configuration>* >> * >> <sourceDirectory>src/main/resources</sourceDirectory>* >> * >> <outputDirectory>src/main/java</outputDirectory>* >> * <!-- uncomment this to work* >> * >> <interimDirectory>src/main/java</interimDirectory-->* >> * </configuration>* >> * </execution>* >> >> After checking out the code I've found that creating an interimDirectory >> paramater will do the trick for me, but that's not the way to do it. It's >> confusing to have 3 directories. >> >> >> Thanks, >> Victor >> > >