I was playing with JTB support in the JavaCC plugin... JTB is a really cool simplified parser, but was written very, very, very poorly... the way it handles config and outputting files is a complete horrible mess, and I had to hack the JavaCC plugin up some to make it behave better.

My guess is that it does not like... um, can you guess... windows :- P Might need a few more hacks in the JTP mojo to get it working. But, I think I am going to give up on JTB and go back to JJTree which is a tad more complex but is not buggy.

You can grab a pre-built dist here if you still want to check it out:

    http://people.apache.org/~jdillon/

--jason


On Oct 3, 2006, at 8:11 AM, Paul McMahan wrote:

On 10/2/06, Jason Dillon <[EMAIL PROTECTED]> wrote:
(in one term)
svn co https://svn.apache.org/repos/asf/geronimo/sandbox/gshell/
trunk/ gshell
cd gshell/
setjdk 1.5
mvn

Any idea what's up with the build failure shown below?  Looks like my
classpath is somehow not getting set correctly for compiling the
generated sources.


[INFO] ---------------------------------------------------------------------- ---
---
[INFO] Building GShell Core
[INFO]    task-segment: [install]
[INFO] ---------------------------------------------------------------------- ---
---
[INFO] [tools:require-java-version {execution: default}]
[INFO] [javacc:jtb {execution: jtb}]
[INFO] Nothing to process - all grammars are up to date
[INFO] [javacc:javacc {execution: jtb-javacc}]
[INFO] Nothing to process - all grammars are up to date
[INFO] [javacc:jjtree {execution: jjtree}]
[INFO] Nothing to process - all grammars are up to date
[INFO] [javacc:javacc {execution: jjtree-javacc}]
[INFO] Nothing to process - all grammars are up to date
[INFO] [antrun:run {execution: remove-overrides}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] [antrun:run {execution: move-to-package}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 49 source files to c:\geronimo\gshell\trunk\gshell-core \target\classes

[INFO] ---------------------------------------------------------------------- --
[ERROR] BUILD FAILURE
[INFO] ---------------------------------------------------------------------- --
[INFO] Compilation failure

c:\geronimo\gshell\trunk\gshell-core\target\generated-sources\jtb \org\apache\ger onimo\gshell\syntax\parser\SyntaxParserTokenManager.java:[8,0] package org.apach
e.geronimo.gshell.syntax.syntaxtree does not exist

c:\geronimo\gshell\trunk\gshell-core\target\generated-sources\jtb \org\apache\ger onimo\gshell\syntax\parser\SyntaxParser.java:[9,0] package org.apache.geronimo.g
shell.syntax.syntaxtree does not exist

c:\geronimo\gshell\trunk\gshell-core\target\generated-sources\jtb \org\apache\ger onimo\gshell\syntax\parser\SyntaxParser.java:[20,10] cannot find symbol
symbol  : class CommandLine
location: class org.apache.geronimo.gshell.syntax.parser.SyntaxParser

[ lots more errors like the ones above ]

[INFO] ---------------------------------------------------------------------- --
[INFO] For more information, run Maven with the -e switch
[INFO] ---------------------------------------------------------------------- --
[INFO] Total time: 16 seconds
[INFO] Finished at: Tue Oct 03 11:03:17 EDT 2006
[INFO] Final Memory: 13M/23M
[INFO] ---------------------------------------------------------------------- --
bash-3.1$

Reply via email to