Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1
-
Fix Version/s: 2.2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
It is sometimes required that custom implementations of certain .java files be provided (as is done in the javacc examples). For instance, custom Token.java for the Java 5 grammar. Also custom AST node implementations can be used for some, but not all jjtree nodes.
When running javacc from the command line, it will not output a file if something with that name already exists. It is desireable that this or a similar functionality be provided by the plugin.
Either copy all .java files from the input directory (e.g. src/main/javacc) to the output directory, check the existing compile source paths to see if certain classes already exist before adding them to the generated output directory.
Issue Links
- relates to
-
MJAVACC-87
Allow customized parser sources to reside in src/main/java
-
This patch make javacc plugin copy all .java file from inputDirectory to outputDirectory before executing javacc.