|
Re: plugin project that references a java project, running junit plugin class def not found problems [message #39242 is a reply to message #39150] |
Thu, 03 November 2005 21:31 |
Marius Slavescu Messages: 67 Registered: July 2009 |
Member |
|
|
Hi Mike,
Here are some hints (project A is the plugin project, project B is the Java
project):
- if you refer a project B from project A you will be able to compile
the code, but the plugin classloader won't find the classes from project B
at runtime, you should avoid the direct modification of the classpath on a
plugin project, always use PDE Tools -> Update Classpath action to update it
after you change the plugin.xml or MANIFEST.MF file.
- I would suggest converting the project B to a plugin project and add
it to the required plugins list of project A, make sure you export all the
Java packages in project B that you'll need in project A.
Regards,
Marius
"Mike Boyersmith" <mjboyers@us.ibm.com> wrote in message
news:dkdld8$1mi$3@news.eclipse.org...
> I have a plugin project that references a java project.
> I want to test the plugin via a junit 'plugin' test.
> the problem is that when I go to run my junit plugin test, my java
> project code isn't found. Class def not found errors...uggg.
>
> So..... any idea how to solve this problem?
>
>
> note I want to debug and I want to change code often so exporting my jar
> to the plugin project isn't a good solution.
>
> Thanks for any ideas or help here.
|
|
|
Powered by
FUDForum. Page generated in 0.02941 seconds