Fwd: [groovy-user] Compilation of Groovy code, transient dependencies

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fwd: [groovy-user] Compilation of Groovy code, transient dependencies

Guillaume Laforge
FYI


---------- Forwarded message ----------
From: Greg J. McKnight <[hidden email]>
Date: Thu, Jun 17, 2010 at 12:00
Subject: [groovy-user] Compilation of Groovy code, transient dependencies
To: [hidden email]


I have a groovy class which uses a Java class (say X) in a totally
different Eclipse plug-in project. The dependency to this project is
defined as an Eclipse PDE depedendency.

X has a dependency on org.eclipse.runtime, and uses the NLS class.

When I try to use this class X in my Groovy class, I get a compile error:

"The type org.eclipse.osgi.util.NLS cannot be resolved. It is
indirectly referenced from required .class files"

When I add the plug-in that holds the org.eclipse.osgi.util.NLS class,
the error is gone.

Why do I have to define the dependencies of another plug-in? Shouldn't
the dependencies work transiently?

Is this something to do with the Groovy compiler?

Thanks for any help.

Greg

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Guillaume Laforge
Groovy Project Manager
Head of Groovy Development at SpringSource
http://www.springsource.com/g2one

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email