Results 1 to 6 of 6

Thread: Deployment and Testing via Eclipse

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Location
    Berlin, Germany
    Posts
    6

    Default Deployment and Testing via Eclipse

    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?

    Thanks in advance!

    Reagrads!
    Thorsten

  2. #2
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Thorsten,

    there are two approaches to make STS aware for intern bundle project dependencies:

    1. Define a PAR project and add both bundles two that PAR. That will automatically handle bundle project dependencies within the scope of that PAR.

    2. If you don't want to define PAR, declare a "Project Reference" using the Eclipse project preferences (Right click on project B -> Project References) and select project A.

    You might need to edit-save the MANIFEST.MF of project A to make that changes propagate to the classpath container and the validation framework.

    HTH

    Christian
    Last edited by Christian Dupuis; Oct 16th, 2008 at 12:57 AM.
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  3. #3
    Join Date
    Oct 2008
    Location
    Berlin, Germany
    Posts
    6

    Default

    Thank you for the solution.

    BTW
    Here is the answer of my question about Testing:

    It's in the "Spring Dynamic Modules Reference Guide"
    (I'm not allowed to post the URL yet )

    Regards,
    Thorsten

  4. #4
    Join Date
    Oct 2008
    Location
    Amsterdam
    Posts
    14

    Default Inter project dependencies

    Christian,

    I am facing the same problem..

    Could you elaborate a bit more on how exactly this should work?
    I have created a PAR project and made references to projects A and B.

    But B still complains that it cannot find A...

    Regards,
    Les

  5. #5
    Join Date
    Oct 2008
    Location
    Amsterdam
    Posts
    14

    Default

    Very intelligent first post, it was a refresh problem...

  6. #6
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Quote Originally Posted by Leslie Noth View Post
    Very intelligent first post, it was a refresh problem...
    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.

    Sorry for the inconvenience.

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •