Community
Participate
Working Groups
to support the ant junit tasks we have a fragment (org.eclipse.ant.optional.junit) of the org.apache.ant bundle that adds a dependency on Junit. Unfortunately, this fragment also adds a dependency on org.eclipse.core.runtime.compatibility. I'm not sure why it does this since ant and junit really should have nothing to do with Eclipse at all so should not be requiring code from eclipse. The downside of having this dependency is that it drags in a whole raft of other bundles (e.g., all of core.runtime and friends) that are not needed for testing OSGi applications. This bug is to explore the possibility of removing the dependency on core.runtime.compatibility.
Any thoughts on doing this change? Might be late for 3.7 but I don't see why the dependency is needed. Adding Kim since the bundle actually seems to be part of the testing framework.
Scanning the list of Ant bugs about o.e.c.r.compatibility I came across bug 48184, bug 61602 and bug 87719 which looks like there should *not* be any dep on *.compatibility, and perhaps they just missed ant.junit.
Created attachment 194524 [details] patch I believe the requirement on runtime.compatibility is because this fragment is still in old school plugin format. I've attached a patch to change it to a proper OSGi bundle. Please +1 if you'd like this change included in 3.7.
+1 from me, I see no harm in the change, plus it was likely suppose to happen in one of the bugs I mentioned and just fell through the cracks until now.
+1. Thanks.
Verified in test build and tagged for I-build.