Since Java 1.5 or so, javac has been looking into the manifest of third-party jars to find other jars. This causes a number of undesirable side-effects:
- As jar files have been renamed, we now get a flood of warnings whenever we compile (can be diabled with
-Xlint:-path
) - Files we don't want on the classpath are being brought back onto it, even if they were left off it for a reason.
- Additional time is being taken in the build to look up all these additional jars, due to the resolution of this stuff we don't actually want.
So I was wondering if anyone knows the magic invocation to disable this. Assuming that Sun didn't saddle us with another feature we didn't want and can't turn off once we have it.