How can I import code from Java project into plug-in project without copying jar ? [message #197925] |
Thu, 19 February 2004 18:50 |
Eclipse User |
|
|
|
Originally posted by: hoe.zurich.ibm.com
I'd like to keep some code that is shared between a plug-in and another
Java application in a Java project (i.e. outside the plug-in project). I
can add that project to my plug-in's Build Class Path, and it compiles
fine, but how can I add it to the runtime classpath as well (this does
not happen automatically)?
I've configured the Java project such that it puts everyting into a
local jar, however I was not yet able to import that jar e.g. by
manipulating the plug-in project's plugin.xml or build.properties (in
Eclipse 2.1.2).
Your advice on how to overcome this situation is much appreciated.
Thanks,
Christian
|
|
|
|
Re: How can I import code from Java project into plug-in project without copying jar ? [message #197959 is a reply to message #197952] |
Thu, 19 February 2004 19:06 |
Eclipse User |
|
|
|
Originally posted by: hoe.zurich.ibm.com
Rich Kulp wrote:
> You can't really. Plugin's must have their jars located within the
> plugin itself and there must be a <required> library element pointing to
> that jar.
>
> It would be better to go the other way, have you non-plugin project
> require the plugin to share the code.
Alright, I see. So I'll do as you say and start from a library plug-in
instead.
Thanks for your quick help,
Christian
|
|
|
Powered by
FUDForum. Page generated in 0.04261 seconds