开发者

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

开发者 https://www.devze.com 2023-01-23 04:35 出处:网络
I have a bunch of OSGi bundles that are basically jars that contain other jars and a manifest. bundle xyz.jar:

I have a bunch of OSGi bundles that are basically jars that contain 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 bundle开发者_StackOverflow社区s. Is there an easy way in Ant to say

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

I could unjar these to a temp directory, but that seems tedious, plus I would not be leveraging the classpath inside the OSGi bundle.


It should not a problem if you're using ant to run PDE build/OSGi application, OSGi would handle with the classpath.

0

精彩评论

暂无评论...
验证码 换一张
取 消