NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
digital.discuss
Joined: 13 Jun 2010 Posts: 35
|
Posted: Wed Aug 04, 2010 9:26 am Post subject: JavaCC in Netbeans, automatic project and maven or ivy library management |
|
|
What is the best way to utilize JavaCC in Netbeans projects? I tried the
plugin available in <http://zirigui.blogspot.com/2008/01/javacc-plugin-
for-netbeans.html> but I can't get it to work in Netbeans. I've set
JAVACC_HOME to where I keep javacc-5.0, also tried with javacc-4.2.
I want to use the Open Source project AtLeap <http: atleap.dev.java.net/
|
| Back to top |
|
 |
Jesse Glick Posted via mailing list.
|
Posted: Wed Aug 04, 2010 10:59 am Post subject: JavaCC in Netbeans, automatic project and maven or ivy library management |
|
|
On 08/04/2010 05:25 AM, MB wrote:
| Quote: | I got the automatic project plugin and everything seems to compile
without errors according to the supplied ant script and the
build.properties files of the project. I don't understand why the "from
an existing ant script" project form doesn't work equally well.
|
The latter is just a standard Ant-based project with an IDE-managed build script that known nothing of JavaCC. It may be possible to edit build.xml (not build-impl.xml)
of a standard project to perform JavaCC compilation in addition to the regular build steps. But this would be more work than using an autoproject, especially on a big
complex project, and might not offer any particular advantage - depends on what you need to do with the project besides edit and build.
| Quote: | Automatic Project should be a part of the netbeans distribution IMHO or
at the very least people could be more aware of its existence.
|
Noted. It's a question of priorities - whether there is time to polish it enough for inclusion in the product.
| Quote: | I have the javacc.jar in my build path and it's referenced from the ant
files. Are there alternative ways, like for instance making javacc a
netbeans library for all projects that needs javacc?
|
You could do that; useful only if you're using standard Ant-based projects.
| Quote: | For automatic
projects I seem to be unable to add existing netbeans libraries,
however, unless I modify "lib.properties", which I suppose is doable.
|
Yes, since autoprojects are normally used for projects that already have a build.xml completely set up, and referring to NB libraries requires a soft dependency on NB
(loading build.properties in the NB userdir) which would usually be inappropriate. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|