I would like to set up an External Tool in Eclipse that does some custom compilation of classes in the project by calling javac
directly. For this, I need to pass javac
the classpath
parameter so it knows where to go looking for dependencies.
Is it possible, e.g. in the External Tools Configurations dialog, to tell Eclipse to pass a list of all referenced libraries and source directories to my external tool, preferrably in the semi-colon separated way that javac
expects? There is a variable called project_classpath
, but unfortunately it returns the output directory for the compiled classes generated by Eclipse, rather than the dependency directories.
I would think Eclipse should have this information readily available somewhere as it probably needs it for its own calls to javac
.
Is there some other place where I can find this information? Unfortunately the .classpath
file associated with the project contains all sorts of cryptic references to Eclipse-internally defined libraries rather than simple path names.