Hi,
My OSGi application uses the bootclasspath to enforce compilation against the right EE by putting the right ee.j2se jar on there. I want to remove that jar from the bootclasspath when running FindBugs since that jar is API only, and has all functions stubbed out with returning null thus resulting in many false positives.
How do I do this?
I haven’t been able to find this.
[Edit] To make it a bit clearer, the project sets up the bootclasspath like so:
if (!bnd_classPathBoot.isEmpty()) {
def classPathBootAsPath = files(bnd_classPathBoot).asPath
compileJava.options.compilerArgs
+= ["-Xbootclasspath/p:$classPathBootAsPath"]
compileTestJava.options.compilerArgs
+= ["-Xbootclasspath/p:$classPathBootAsPath"] }
This is the last hurdle I have to take before we can fully support a gradle build with bndtools