NoClassDefFound with contributed ant task [message #329053] |
Wed, 11 June 2008 13:15 |
Eclipse User |
|
|
|
Originally posted by: thomas.diligent.st.com
Hello,
First, I apologize if I posted in the wrong topic,
please let me know,
I wrote contributing ant tasks.
These tasks should access classes from the contributing plugin and from
its dependencies. Build is Ok, tasks are packaged in a jar provided by the
plugin, but not exported by the plugin (like recommended by the
documentation) so that plugin class loader cannot load them.
For instance,
A plugin 'org.A' contributes an ant task 'taskA'.
The plugin 'org.A' requires plugin 'org.B'.
'taskA' access classes from 'org.A' and 'org.B'.
(As far as I know, 'taskA' can access 'org.A' but 'org.A' cannot access
'taskA')
It actually does not work on linux (works fine on windows).
I get NoClassDefFound exception on linux.
My questions are:
Am i doing something wrong ?
Is it possible or not ?
Thomas
|
|
|
|
Re: NoClassDefFound with contributed ant task [message #329087 is a reply to message #329075] |
Thu, 12 June 2008 12:00 |
Eclipse User |
|
|
|
Originally posted by: thomas.diligent.st.com
Well, it seems to deal with UI plugins dependency.
The plugin on which depend the ant contributing plugin has dependencies on
user interface stuff.
As the ant script runs in headless mode, this seems to cause some problems
on linux (but surprisingly does not on windows).
I will investigate further and let you know... (although I am currently
self-posting, I still believe one day this will help someone somewhere ;-)
)
|
|
|
Powered by
FUDForum. Page generated in 0.11827 seconds