Local Project File [Re: Extending the IProjectFileManager interface]

Matt Rogers mattr at kde.org
Fri Jul 6 02:26:44 UTC 2007

On Jul 5, 2007, at 3:20 PM, Jens Herden wrote:

> On Thursday 05 July 2007, Andreas Pakulat wrote:
>> On 05.07.07 14:02:56, Andras Mantia wrote:
>>> On Tuesday 03 July 2007, Andreas Pakulat wrote:
>>>> On 03.07.07 22:10:57, Andras Mantia wrote:
>>>>> On Tuesday 03 July 2007, Andreas Pakulat wrote:
>>>>>> On 03.07.07 21:10:05, Andras Mantia wrote:
>>>>>>>  Our idea was to store such information in the project
>>>>>>> configuration file (the "local" one if such exists now, not the
>>>>>>> one that is shared between users).
>>>>>> Yes, thats what the projectmanager does when importing the file.
>>>>> BTW, I couldn't find how to access the local file. It seems to be
>>>>> commented out now.
>>>> Uhm, you don't access that file. You access the projects
>>>> configuration. And all changes done will be written to the local
>>>> file. This way using remote projects is completely transparent for
>>>> the plugins.
>>> Maybe I wasn't clear about the local file. Of course, I shouldn't  
>>> care
>>> if the project was remote or not, and if the file I'm writing on is
>>> *exactly* the project file or a local copy of it.
>>> What I meant all above with the local file is the file that is not
>>> shared by developers. Do we still have this concept?
>> Yes, its stored in <project>/.kdev4/<projectname>.kdev4 and access  
>> to it
>> is given through the projectConfiguration() API.
>>> I mean, in
>>> KDevelop3 and Quanta3 there is the project file and a project  
>>> session
>>> file (yeah, this is a better name). Theoretically the project file
>>> contains only information that are relevant for all developers,  
>>> while
>>> the session file is specific for the current developer. Propertis  
>>> IMO
>>> can go in both files, as they might be shearable or not.
>> No they can't, the project file is read-only because a
>> read-write-approach didn't work out. So now project-default-config is
>> read from the project-file, but storing is always done into the
>> local-file (or session file, whatever you call it).
> Now I am confused very much. Do you mean we have one *.kdev4 file  
> which is
> read-only (which is supposed to be in a VCS) and one
> <project>/.kdev4/<projectname>.kdev4 which is read-write (which is  
> supposed
> to be _not_ in a VCS)?
> Jens

Yes, that is correct, although one can have more than one file in  
the .kdev4 directory so that one can store information specific to  
one's plugin in one's own file or set of files. At least this was the  
way I thought it could work.

More information about the KDevelop-devel mailing list