16

I don't know whether it's even possible since this file does not contain any relevant links to directories, but anyway: I want to store .project files in a separate dir outside the project root. How can I do that?

1
  • Due to the fact the project directory is constantly in use by a lot of co-workers it's common for this file to disappear strangely.
    – ienes
    Aug 6, 2010 at 12:22

1 Answer 1

16

You can't place the ".project" outside of the project root, as the project root is the folder where the ".project" is located. What you can is, you can define a project at an other location as your sources und create linked folders to link your sources to your project.

If you create a new folder there is a button "Advanced" in the dialog. If you click it there is a checkbox "Link to folder in the file system". Here you can link folders to your project that are not located in the project folder. I assume this is the effect you want to achieve.

7
  • Great advice! This "eclipse-symlink" was just what I needed so that I can work on git repos, while syncing my .project files via Dropbox.
    – metakermit
    Apr 4, 2013 at 11:33
  • I just started working on a project and was surprised to see no .project with the source folders etc. After reading this answer, it might explain how the setup was done. Thanks for the post, very useful.
    – MikeRoger
    Oct 2, 2014 at 8:28
  • Very useful for having your project live outside of source control folders. Thanks!
    – Rich
    Apr 14, 2016 at 11:04
  • 1
    Yet another reason to dislike eclipse. You should be able to store settings and project information in a separate location from the project source.
    – Kevin M
    Jul 21, 2016 at 16:47
  • 1
    @KevinM, that capability es exactly what this answer gives you.
    – hmijail
    Oct 23, 2016 at 17:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.