Author Login
Post Reply
This should really go to eclipse-plugin-dev@(protected)
added them.
Matt
-----Original Message-----
From: news [mailto:news@(protected)
Sent: Thursday, May 01, 2008 8:16 AM
To: user@(protected)
Subject: [grails-user] Re: Eclipse: Referencing Groovy classes from Java
okay, two things I just figured out:
1) the package explorer not displaying errors while the Java editor does
was
an Eclipse bug (disappeared after restarting Elipse)
2) the problem itself seems to occur when the project's build folder
(e.g.
bin/) is used for both Java class files and Groovy class files. This is
because Eclipse does not allow adding the output folder as a library
path
explicitly, but since it is not aware of grails/groovy compiling classes
to it, it seems to get confused
The solution (on Linux) is to do this:
1) create an output folder for Java class files, e.g. bin/
2) create a symlink to ~/.grails/<ver>/projects/<name>/classes,
e.g. groovy-bin
3) add groovy-bin to the classpath
That works for me.
PS: Is is important to make sure that in the Groovy Project Settings,
the
Groovy compiler output path is also set to that symlink (or the actual
directory), otherwise Eclipse and Grails compile to two different
locations
and get out-of-sync.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email