[Q]build error with javacc plugin [message #238285] |
Tue, 04 May 2004 03:49 |
Eclipse User |
|
|
|
Originally posted by: epocjava.hotmail.com
Hi,
I developed my project using Javacc3.2 on the eclipse platform as a external
tool, but its plug-in exists. So, I tried to use it on my project, but
whenever I build my project with the plug-in, the eclipse comes out
errors."the project does not exist."
The version of Javacc plug-in is 0.9.0, which can have many bugs, but I read
some articles posted on the javacc plug-in forum, which some guys succeed in
using the plug-in.
The following is the "README" file written by the developer:
TO INSTALL:
1) Unzip the plugin distribution zip file into your
Eclipse installation's plugin directory. You should
end up with a plugin directory called
com.subx.eclipse.javacc_<version>.
2) Due to licensing restrictions, you will need to download
the JavaCC library yourself and manually put it into the
plugin directory as follows:
a) Goto http://www.webgain.com/products/java_cc/
b) Follow instructions to download and unpack the JavaCC tool.
c) Copy the JavaCC.zip file from the JavaCC install directory:
<javacc_install>/bin/lib into the unpacked plugin directory.
3) At this stage of development, you will manually need to edit the
project files of projects you wish to use the javacc-plugin with.
a) quit Eclipse
b) open the .project file that lives in your project's directory
c) insert the following XML at the beginning of the <buildSpec> tag
children;
<buildSpec>
<buildCommand>
<name>com.subx.eclipse.javacc.Builder</name>
<arguments>
</arguments>
</buildCommand>
<!-- other buildCommand entries here -->
</buildSpec>
4) Create .jj files in your project's source tree. In general,
I create and maintain the jj files in the package in which the
resulting parser is generated. The plugin will, once the .jj file
is discovered (at save time), create a new source folder called
_generated. Files in this folder will be the results of the generation
of the parser. You should not maintain the _gnerated folder in your
source control system as it is entirely generated from the .jj file.
Every time you change and save the .jj file, the parser will be
regenerated
and recompiled.
-----------------------
By all means, I did follow that instruction, but I failed using the plug-in.
Is there anyone who can comment about this?
Thanks in advance,
|
|
|
Powered by
FUDForum. Page generated in 0.03492 seconds