This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Deployment and Testing via Eclipse

Oct 2nd, 2008, 05:48 PM

Hi!

1. I've a problem with developing Bundles in Eclipse.

Imagine you want to develop 2 or more bundles in Eclipse whitch depend on each other.
Ok. I created bundle "A" and implemented all the stuff that is needed (interfaces, implementations,MANIFEST.MF, modul-context, osgi-context)

Then I create bundle "B" whitch depends on bundle "A".
So I declared the package I exported in A to be imported in B.
But Eclipse tells me that the package I want to import does not exist.
Hmm. Do I have to deploy "A" to the DM-Server?
(How to deploy a normal bundle from Eclipse to the DM-Server?)
Do I've to press a magic key?
It should be very simple, but I can't resolve this problem.
(In the past you only had to add the project "A" to the build path of project "B"
Strange, what did I miss?

2. Is there a manual how to create UnitTests for bundles?
Or do you have a tip how to create UnitTests for bundles?

The current behavior is actually not very intuitive and we are working on improving detection of such changes in order to automatically trigger the refresh that needs to be done manually at the moment.