[
http://jira.codehaus.org/browse/MJAVACC-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bentmann closed MJAVACC-81.
------------------------------------
Resolution: Fixed
Fix Version/s: 2.4
Committed in r6203.
> Plugin fails if JTB is called more than once during a build
> -----------------------------------------------------------
>
> Key: MJAVACC-81
> URL: http://jira.codehaus.org/browse/MJAVACC-81
> Project: Maven 2.x JavaCC Plugin
> Issue Type: Bug
> Components: jtb
> Affects Versions: 2.3
> Reporter: Benjamin Bentmann
> Assignee: Benjamin Bentmann
> Priority: Blocker
> Fix For: 2.4
>
>
> The JTB developers obviously had embedding not in mind:
> {noformat}
> JTB version 1.3.2
> JTB: Reading from
> M:\maven\mojo\javacc-maven-plugin\src\it\jtb-dynamic-packages\src\main\jtb\Parser1.jtb...
> ERROR: Second call to constructor of static parser. You must
> either use ReInit() or set the JavaCC option STATIC to false
> during parser generation.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] null
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.Error
> at EDU.purdue.jtb.parser.JTBParser.<init>(JTBParser.java:9276)
> at EDU.purdue.jtb.JTB.main(JTB.java:95)
> at org.codehaus.mojo.javacc.JTB.execute(JTB.java:273)
> at org.codehaus.mojo.javacc.ToolFacade.run(ToolFacade.java:92)
> at org.codehaus.mojo.javacc.JTBMojo.runJTB(JTBMojo.java:400)
> at org.codehaus.mojo.javacc.JTBMojo.processGrammar(JTBMojo.java:304)
> at org.codehaus.mojo.javacc.JTBMojo.execute(JTBMojo.java:241)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
> {noformat}
> So we are better off with forking JTB than calling it inline.
--
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
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email