Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How can I change the location where the project files are stored?
How can I change the location where the project files are stored? [message #333612] Thu, 18 December 2008 12:40 Go to next message
Louis Caron is currently offline Louis CaronFriend
Messages: 5
Registered: July 2009
Junior Member
I am working on a project where only a few developpers are using eclipse.
The project is stored on an SVN database and I wanted to store the project
files on the database to share it with the other eclipse users working on
the project.

Unfortunately, the non eclipse developers are complaining about the fact
that the eclipse project files (.project, .cproject, .settings,
pydevproject) are located at the project root. They would like to see
them in a specific projectroot/workspace/eclipse directory where other
tools workspace descriptions are stored.

My other solution is to remove those files from SVN and SVNignore them,
but I would really like to have it available to convince the other users
that eclipse is a better choice than their respective vi/vim/XXedit
solutions.

Thanks for your help,
Louis
Re: How can I change the location where the project files are stored? [message #333618 is a reply to message #333612] Thu, 18 December 2008 14:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 12/18/2008 7:40 AM, Louis Caron wrote:
> I am working on a project where only a few developpers are using
> eclipse. The project is stored on an SVN database and I wanted to store
> the project files on the database to share it with the other eclipse
> users working on the project.
>
> Unfortunately, the non eclipse developers are complaining about the fact
> that the eclipse project files (.project, .cproject, .settings,
> pydevproject) are located at the project root. They would like to see
> them in a specific projectroot/workspace/eclipse directory where other
> tools workspace descriptions are stored.
>
> My other solution is to remove those files from SVN and SVNignore them,
> but I would really like to have it available to convince the other users
> that eclipse is a better choice than their respective vi/vim/XXedit
> solutions.

This has been requestes and discussed at length. Unfortunately, it is
not a trivial issue because Eclipse projects need to be self-describing
and thus the .project file (and its friends) needs to be in a consistent
(non-configurable) location.
Here are some bugs I found relating to this issue; feel free to
contribute your own comments or votes or, even better, design ideas and
code patches:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=76695
https://bugs.eclipse.org/bugs/show_bug.cgi?id=78438
https://bugs.eclipse.org/bugs/show_bug.cgi?id=42875
https://bugs.eclipse.org/bugs/show_bug.cgi?id=72301

Hope this helps,
Eric
Re: How can I change the location where the project files are stored? [message #333633 is a reply to message #333618] Thu, 18 December 2008 22:43 Go to previous message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

"Eric Rizzo" <eclipse-news@rizzoweb.com> wrote in message
news:gido38$vpr$1@build.eclipse.org...
> On 12/18/2008 7:40 AM, Louis Caron wrote:
> > I am working on a project where only a few developpers are using
> > eclipse. The project is stored on an SVN database and I wanted to store
> > the project files on the database to share it with the other eclipse
> > users working on the project.
> >
> > Unfortunately, the non eclipse developers are complaining about the fact
> > that the eclipse project files (.project, .cproject, .settings,
> > pydevproject) are located at the project root. They would like to see
> > them in a specific projectroot/workspace/eclipse directory where other
> > tools workspace descriptions are stored.
> >
> > My other solution is to remove those files from SVN and SVNignore them,
> > but I would really like to have it available to convince the other users
> > that eclipse is a better choice than their respective vi/vim/XXedit
> > solutions.
>
> This has been requestes and discussed at length. Unfortunately, it is
> not a trivial issue because Eclipse projects need to be self-describing
> and thus the .project file (and its friends) needs to be in a consistent
> (non-configurable) location.
> Here are some bugs I found relating to this issue; feel free to
> contribute your own comments or votes or, even better, design ideas and
> code patches:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=76695
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=78438
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=42875
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=72301
>
> Hope this helps,
> Eric

You can locate these files in a directory other than the root by using
linked resources. Create your project in the projectroot/workspace/eclipse
directory. Define a Path Variable
(Window->Preferences->General->Workspace->Linked Resources) to point to the
root of your project (this allows relative positioning on each developers
PC). Then use the Advanced section of New->Folder to expand on the Path
Variable to point to your source directories.

The .project, .classpath, etc files will then be stored in the
projectroot/workspace/eclipse directory but you will still be able to share
the projects.

Tip. to set enterprise wide project settings select the Enable project
specific settings on the Properties page for your project. This will save
the settings in a .settings directory in your projectroot/workspace/eclipse
directory. You can then check them into SVN and everyone who checks the
project out will have the same settings. You can copy the .settings
directory to new Eclipse projects when you create them to keep the settings
consistent across projects.
Previous Topic:p2: problem with permissions.properties on linux
Next Topic:Changing model for a TableViewer in a View
Goto Forum:
  


Current Time: Wed Jul 03 19:32:24 GMT 2024

Powered by FUDForum. Page generated in 0.03974 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top