I use Eclipse with "external" projects - i.e. projects created from existing source.
Poking around in the workspace files, I cannot find any reference to these projects. My question is: how does Eclipse keep track of these projects?
I'd like to be able to add such a project to the workspace automatically (by generating .project
and .classpath
files).
Windows:
<workspace>\.metadata\.plugins\org.eclipse.core.resources\.projects\
Linux / osx:
<workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects/
Your project can exist outside the workspace, but all Eclipse-specific metadata
are stored in that org.eclipse.core.resources\.projects
directory
In Mac OS X, it is under
<workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects
In Eclipse 3.3:
It's installed under your Eclipse workspace. Something like:
.metadata\.plugins\org.eclipse.core.resources\.projects\
within your workspace folder.
Under that folder is one folder per project.
There's a file in there called .location, but it's binary.
So it looks like you can't do what you want, without interacting w/ Eclipse programmatically.
If you are using Perforce (imported the project as a Perforce project), then .cproject and .project will be located under the root of the PERFORCE project, not on the workspace folder.
Hope this helps :)
You can also have several workspaces - so you can connect to one and have set "A" of projects - and then connect to a different set when ever you like.
In Linux after deleting
<workspace>\.metadata\.plugins\org.eclipse.core.resources\.projects\
Does not worked.
After that i have done File->Refresh
Then it cleared all old project listed from eclipse.