Hi Sylvester,

Thanks for the note on the build script.  It really needs to check for
a min of 1.6.

I'm not sure why you have problems compiling.  I use javacc 3.2 as
well.  Did you type "ant clean" first?

JavaCC generates node files and Parser.java.  The node files are not
needed and can be deleted.  (I think this happens in the build
script).  If you are just changing existing syntax, no manual copying
of files is required.  If you are adding a new Node you'll have to
move that into the Node directory.

WILL

On 3/10/07, Sylwester Lachiewicz <[EMAIL PROTECTED]> wrote:
Hi,
i checkout Velocity from svn and i have problem with build.

Standard build is ok, but when i want to compile with javacc (type ant
parser) i got error that i need JavaCC 3.1 and Ant 1.6.
i have javacc 3.2 (i already set javacc.home to valid directory)

Propably problem exists becouse ant build.xml script checks for ant 1.6 and
i have 1.7.
-----
    <condition property="parser-task-runnable">
      <and>
        <available file="${javacc.home}" type="dir"/>

        <!-- include a list of acceptable ant versions here -->
        <or>
          <contains string="${ant.version}" substring="1.6"/>
        </or>
      </and>
    </condition

--

And another error, even i put 1.7 in script build script fails with compile
errors in generated classes

compile-src:
    [javac] Compiling 215 source files to D:\projects\velocity\bin\classes
    [javac]
D:\projects\velocity\bin\src\org\apache\velocity\runtime\parser\Pars
erVisitor.java:7: cannot find symbol
    [javac] symbol  : class SimpleNode
    [javac] location: interface
org.apache.velocity.runtime.parser.ParserVisitor

    [javac]   public Object visit(SimpleNode node, Object data);
    [javac]                       ^
    [javac]
D:\projects\velocity\bin\src\org\apache\velocity\runtime\parser\Pars
erVisitor.java:8: cannot find symbol
    [javac] symbol  : class ASTprocess

[..]

I found also that javacc autogenerated classes should be directly copied to
src becouse some manual modifications

Sylwester



--
Forio Business Simulations

Will Glass-Husain
[EMAIL PROTECTED]
www.forio.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to