I'm looking into a means of extracting Eclipse build classpath info from Eclipse projects. While I'm pretty sure this is achievable by writing a custom headless Eclipse application that loads the Java projects and calls a method to resolve the classpaths (see this SO question), I'm trying to avoid that if possible. I'm not opposed to this if it's the best/only way, but before I do this I wanted to check if someone has already solved this problem.
All I need out of this is a list of jar files included in the project's classpath. Most of this info can be collected from the .classpath file itself. However, the difficulty I'm having is with the so-called "classpath containers" which are stored internal to eclipse in an apparently undocumented format. I've looked to some existing tools to solve this, in particular ant4eclipse, but last I checked the only classpath container types it can resolve are JREs and User Libraries, both of which I've already figured out how to tackle without needing to invoke eclipse.
Any suggestions?