Hi,

just a heads up:

I tried building openjpa-kernel on windows and ran into a javacc problem. The source generated by the compiler generation tool includes the name of the generated file with its path: /[EMAIL PROTECTED](jjtree) Generated By:JJTree: Do not edit this line. c:\users\michael\openjpa\workspace\trunk\openjpa-kernel\target\generated-sources\jjtree\org\apache\openjpa\kernel\jpql\JPQL.jj */

Please note, because I'm running it on windows the path separator is a backslash and my home directory is c:\users\michael. But \u has a special meaning (unicode escape) even within comments. This means the generated source does not compile and results in a java.lang.Error: Invalid escape character at line 1 column 64. This is a known problem with javac and there is already an issue filed for this: https://javacc.dev.java.net/issues/show_bug.cgi?id=135

There is a simple workaround:
Make sure the path name of the generated file does not include any directory starting with a "u". So I moved my workspace to a directory different from c:\users\michael (e.g. c:\projects) and could build successfully.

Regards Michael

--
[EMAIL PROTECTED] Engineering GmbH  Tel.: +49/(0)30/235 520-33
Buelowstr. 66                Fax.: +49/(0)30/217 520-12
10783 Berlin                 mailto:[EMAIL PROTECTED]
Geschaeftsfuehrung: Dr. Gerhard Mueller-Proefrock
                   Anna-Kristin Proefrock
Sitz Berlin, Amtsgericht Charlottenburg, HRB 564 52
[INFO] Scanning for projects...
[INFO] 
----------------------------------------------------------------------------
[INFO] Building OpenJPA Kernel
[INFO]    task-segment: [install]
[INFO] 
----------------------------------------------------------------------------
[INFO] [javacc:jjtree {execution: jjtree-jpql}]
Java Compiler Compiler Version 4.0 (Tree Builder)
(type "jjtree" with no arguments for help)
Reading from file 
c:\users\michael\openjpa\workspace\trunk\openjpa-kernel\src\main\jjtree\org\apache\openjpa\kernel\jpql\JPQL.jjt
 . . .
File 
"c:\users\michael\openjpa\workspace\trunk\openjpa-kernel\target\generated-sources\jjtree\org\apache\openjpa\kernel\jpql\Node.java"
 does not exist.  Will create one.
Annotated grammar generated successfully in 
c:\users\michael\openjpa\workspace\trunk\openjpa-kernel\target\generated-sources\jjtree\org\apache\openjpa\kernel\jpql\JPQL.jj
[INFO] [javacc:javacc {execution: javacc-jpql}]
Java Compiler Compiler Version 4.0 (Parser Generator)
(type "javacc" with no arguments for help)
Reading from file 
c:\users\michael\openjpa\workspace\trunk\openjpa-kernel\target\generated-sources\jjtree\org\apache\openjpa\kernel\jpql\JPQL.jj
 . . .
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Invalid escape character at line 1 column 64.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.Error: Invalid escape character at line 1 column 64.
        at org.javacc.parser.JavaCharStream.readChar(Unknown Source)
        at org.javacc.parser.JavaCCParserTokenManager.getNextToken(Unknown 
Source)
        at org.javacc.parser.JavaCCParser.jj_ntk(Unknown Source)
        at org.javacc.parser.JavaCCParser.javacc_options(Unknown Source)
        at org.javacc.parser.JavaCCParser.javacc_input(Unknown Source)
        at org.javacc.parser.Main.mainProgram(Unknown Source)
        at org.codehaus.mojo.javacc.JavaCCMojo.execute(JavaCCMojo.java:235)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Jun 06 15:36:31 CEST 2007
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------

Reply via email to