Kris Pruden
Kris Pruden

Reputation: 3308

Where in an Eclipse workspace is the list of projects stored?

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).

Upvotes: 127

Views: 120817

Answers (6)

VonC
VonC

Reputation: 1327384

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 As noted in the comments by tk421storm, and in Jeegar Patel's answer:

In order for manual changes to take effect, make sure to do File -> Refresh afterwards.

Upvotes: 157

Dave DiFranco
Dave DiFranco

Reputation: 1735

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.

Upvotes: 9

Jeegar Patel
Jeegar Patel

Reputation: 27230

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.

Upvotes: 1

Sebastian
Sebastian

Reputation: 31

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 :)

Upvotes: 3

Magne Land
Magne Land

Reputation: 1224

In Mac OS X, it is under

<workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects

Upvotes: 13

silverbugg
silverbugg

Reputation: 186

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.

Upvotes: 0

Related Questions