Is there an easy way to use the OSGi package in the classpath for Ant junit or java tasks?

I have a bunch of OSGi packages that basically contain jars containing other jars and a manifest.

bundle xyz.jar: somejar1.jar somejar2.jar Manifest 

I want to run some junit tests and need some classes inside these packages. Is there an easy way in Ant to say

<path name="myclasspath" location="[stuff inside OSGI bundle xyz.jar]> ?

I could untie them in the temp directory, but it seems tedious, plus I will not use the class path inside the OSGi package.

+6
classpath ant osgi
source share
1 answer

Do not worry if you use ant to run the PDE build / OSGi application, OSGi will handle the classpath.

+2
source share

All Articles