Bug 260628 - [Workbench] Store ALL configuration in one subfolder
Summary: [Workbench] Store ALL configuration in one subfolder
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.13   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-10 19:57 EST by Sven Köhler CLA
Modified: 2019-11-27 19:24 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Köhler CLA 2009-01-10 19:57:05 EST
Eclipse stores it's configuration in multiple files:
.settings/...
.classpath
.project

I like to keep the settings in CVS/SVN/whatever. Yet, the names of these files are rather general and very eclipse-unspecific. In addition, there are at least 3 entries in the root-directory of a project, that belong to Eclipse.


For future versions (3.5, maybe 4.0) i'd like to see a cleaner mechanism:
- store ALL configuration in ONE subfolder
- no more .project/.classpath files or .settings folder with very general names
- use an eclipse-specific name like ".eclipse" or maybe the domainname-derived ".org.eclipse" for the configuration folder


I'm pretty sure, it's much work and any plugin developers will kill you :-)
So maybe it's an enhancement that should be targeted for a new major version.
Comment 1 Eric Moffatt CLA 2009-01-14 16:13:52 EST
Sven, this looks to be a good idea to me. I'll put it into the 4.0 bucket for now since this would be unlikely to change in the 3.x stream any time soon.
Comment 2 Sven Köhler CLA 2009-03-26 05:31:55 EDT
Addition thought:

Maybe it's also best practice, to use correct file extensions. So for example instead of just saving a file ".classpath" with XML content, it would be nice if Eclipse would store it in a file with ".xml" extenstion.

All together, with my thoughts from above, the file could be called

.eclipse/org.eclipse.jdt.classpath.xml
Comment 3 Dani Megert CLA 2013-06-05 10:42:10 EDT
Removing outdated target milestone.
Comment 4 Sven Köhler CLA 2013-06-05 12:23:42 EDT
Unfortunately, Eclipse 4.x has emerged without this change included. After 4 years, I still think that Eclipse should:

- store all (or all expect one) configuration files in a project subfolder:
This will (hopefully) in a more clean structure and it can (hopefully) unify the (at least) two different approaches of storing preferences (e.g. JDT puts some confiuration in the .classpath file - other configuration is stored in .settings/*.xml)

- use proper file extentions for its configuration files:
No more .project or .classpath filenames please. This will help CVS, SVN, git - especially external clients and people not using eclipse - to treat the files correctly.



Kind Regards,
  Sven
Comment 5 Lars Vogel CLA 2019-11-27 07:19:45 EST
This bug hasn't had any activity in quite some time. Maybe the problem got
resolved, was a duplicate of something else, or became less pressing for some
reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it.
The information can be, for example, that the problem still occurs, that you
still want the feature, that more information is needed, or that the bug is
(for whatever reason) no longer relevant.

If the bug is still relevant, please remove the stalebug whiteboard tag.
Comment 6 Sven Köhler CLA 2019-11-27 19:24:08 EST
This is still on my wishlist. Every .gitattributes and/or .gitignore file is clobbered with eclipse specific files. The files don't have proper extensions (e.g., .project should at least be called .project.xml) and project configuration is in the root directory of the project when it could reside in a nice subfolder (such as .eclipse).

Sure, this structure has grown as it did for historic reasons, but this is getting out of hand. Most 3rd party plugins also follow the naming convention and place a ".somename" file in the root of the project.

Then again, there is the .settings folder. Even though I wish that folder would have been called ".eclipse", that folder is a step in the right direction: config files inside have proper extensions. But files like .project have not been moved inside that folder, yet.