views:

222

answers:

2

Hello,

I want to commit my CDT project to SVN. I am a newbie regarding CDT, and I'd like to know the files describing the project.

The concerned files seem to be :

.project .settings (directory) .cproject .csettings (directory)

What are the purposes of .project and .settings ?

.project just include references to XML files stored in the .csettings directory. Some of my co-workers, for other projects, don't have this .csettings directory : everything is in the .cproject file. Are there some project properties which could make Eclipse delegates all the CDT settings in XLM files in the .csettings directory ?

And what about .csettings ?

Extra question : what is the .directory ?

Thakns. I searched for hours on Google, but Idin't find anything.

A: 

Every eclipse project has a .project file, general project settings (like the name of the project) go here

The .cproject file is where the CDT project specific settings go.

I'm not sure what the .settings and .csettings directories are for. Probably for project specific settings that can't be added to the .project and .cproject files.

On unix files (and directories are just a special type of file in unix) that begin with a . are hidden files.

Glen
.cproject is, as written above, only a list of pointers to the XML contained in the .csettinsg directory.I don't understand why there are two levels tod escribe the project : .project on one side, and .cprojet/.csettings on the other side..settings remais a mystery...
Oodini
By the way, the .project seems to contain mainly info about the building settings.
Oodini
Oodini where did you get your CDT from? .csettings was an experimental feature I added to try to split the 'large' .cproject up into smaller pieces. For official CDT releases, you should see a single .cproject only...
James Blackburn
A: 

.project is where Eclipse starts whenever it opens up the project: it tells the workbench what plugins are needed.

.cproject contains the settings specific to the CDT: your project's choice of build configurations, toolchains, individual tools and so on.

.settings can be used by individual plug-ins to store their own project-level preferences.

I've never come across .csettings...

crazyscot