Hello,
I'm using the javacc maven plugin to create of an jjt file a parser. I can
do this via the javacc-eclipse plugin or via at -> works with both. 

When using the maven plugin (see below the pom.xml snip) the plugin creates
an invalid jj-file.

Invalid in the way, that in the first-line the absolut-file-path is
generated into the comment, and this causes a problem on windows when the
string \u occurs.

The error there is: Invalid escape character at line 1 column ...
where the first line looks like this in the generated jj file.

/*...@bgen(jjtree) Generated By:JJTree: Do not edit this line.
D:\Java\Workspace_3.4\up\up2\target\javacc-1238668669650\node\SearchCriteriaCC.jj
*/

It seems to be like the bug in the link, that got solved with javacc v4.0:
http://www.nabble.com/-jira--Created%3A-(JCR-575)-unicode-escapes-in-files-generated-by-JJTree-td6394696.html#a6394696

All the javacc jars I found on my machine are v4.1

---- POM snip ----

     <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>javacc-maven-plugin</artifactId>
        <version>2.5</version>
        <executions>
          <execution>
            <phase>generate-sources</phase>
           <id>jjtree-javacc</id>
            <goals>
              <goal>jjtree-javacc</goal>
            </goals>
            <configuration>
              <isStatic>false</isStatic>
              <buildParser>true</buildParser>
              <sourceDirectory>${basedir}/src/main/javacc</sourceDirectory>
             
<outputDirectory>${project.build.sourceDirectory}</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
------------------

Any help, much appreciated.
Bertram Grillitsch
-- 
View this message in context: 
http://www.nabble.com/javacc-maven-plugin-creates-invalid-jj-file-from-jjt-file-tp22845508p22845508.html
Sent from the mojo - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to