Multiple grammar issue ---------------------- Key: MPJAVACC-5 URL: http://jira.codehaus.org/browse/MPJAVACC-5 Project: maven-javacc-plugin Issue Type: Bug Reporter: Stefano Fornari Attachments: JavaCCMojo.java, multi-grammar-2.patch
Hi All, I have multiple grammar files, each going into a different package. Therefore, I cannot specify either the output directory nor the package. I created the attached pom, but when maven generates the parser, all source codes go in the same generated-files directory. Looking at the code of the plug-in, it looks like it is a limitation in the plug-in (please forgive me if I am saying an heresy, it is the first time I see a mojo... :) ). Therefore, I would like to propose a little change: the grammar is searched for a package declaration, if it is found it is used like if it was specified as plugin property. I would aslo skeep processing ig the output directory does not exist. This helps in specifying the plug-in in a parent project even if any of the subprojects does not have javacc grammars. Please see the attached pacth and class. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira