Are there any ways to make javac
use an existing OSGi-environment for the resolution of build-time dependencies instead of setting the classpath explicitely? I know I could write an OSGi-component that uses the Compiler-API of the JDK, but I think there should be a more straightforward solution.
Alternatively, if no such extension is available for javac
, does ejc
allow such a thing (usable from the command line; I'd be willing to accept an Equinox-only solution with ejc
)?