[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.jdt] Re: Where and how are the Variable Classpath Entries stored

They are being set through the API org.eclipse.jdt.core.JavaCore.setClasspathVariables(String[], IPath[], IProgressMonitor).

If you look at the implementation, you see that they are in the end stored JavaModelManager.variablePreferencesPut(String, IPath), which puts them into the instance preferences. Those are stored in <workspace>/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs under keys org.eclipse.jdt.core.classpathVariable.<variableName>

But that's an internal implementation detail that may change at any time.

HTH,
Markus


On 2009-09-14 11:00, Christophe Dore wrote:
Hi

For some reasons that would be too long here, I'd like to be able to see the structure of a java project from outside of eclipse (without requiring to execute it)

By structure, I mean where are the sources, ressources, the libraries (jars, ...)

It is quite east to read the .project and .classpath files. But when a project uses a Variable Classpath Entry, all what we get is the name of the variable. Not a problem if we could resolve that variable, but unfortunately I have not found how to do this...

So if anybody could give me info or hints that would allow me to know how to resolve those variables, that would be of a great help.

Thanks in advance.

--
cd