Results 1 to 2 of 2

Thread: Need help on how to export some packages in a bundle

  1. #1
    Join Date
    Mar 2009
    Location
    Quezon City, Philippines
    Posts
    10

    Default Need help on how to export some packages in a bundle

    Can I create a bundle that composes of jars then I will export some packages located per jar?

    For example I have a bundle1 with 3 jars with its packages and classes. I want to export package1 of jar1 so that will be use by other bundles that I created.


    Bundle1
    |_ jar1
    |_ _ package1
    |_ _ _ class1
    |_ _ _ class2
    |_ _ _ class3
    |_ _ package2
    |_ _ _ class1
    |_ _ _ class2
    |_ jar2
    |_ _ package1
    |_ _ _ class1
    |_ _ _ class2
    |_ _ package2
    |_ _ _ class1
    |_ jar3
    |_ _ package1
    |_ _ _ class1
    |_ _ package2
    |_ _ _ class1

  2. #2
    Join Date
    Oct 2008
    Posts
    493

    Default

    You can do this by using the Bundle-Classpath manifest header to point to the jars inside your bundle. E.g.:
    Code:
    Bundle-Classpath: .,jar1.jar,jar2.jar,jar3.jar
    You can then use the Export-Package header as usual to export packages contained in the jars.
    Andy Wilkinson
    SpringSource

Posting Permissions

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