Absolute paths in .kdev4/ dir

Milian Wolff mail at milianw.de
Fri Jul 9 19:35:49 UTC 2010

Valentin Pavlyuchenko, 03.07.2010:
> I have a patch that allows loading relative paths and does saving
> paths as relative (if inside of project dir).
> But there are few questions:
> 1. Should paths be converted when the project with absolute paths is
> opened? I think that should.

Sure, why not. That should not be much overhead and could be disabled later 

> 2. Another thing: if we will try to open projects with relative paths
> in an older KDevelop version, it will cause problems.
> I propose to change parameter names in kdev4 file (from BuildDirs to
> RelativeBuildDirs and from CurrentBuildDir to RelativeBuildDir).
> Old file format will be converted on opening.
> Is it ok?
> If it is - I will create a merge request.

Sounds fine with me.
> 2010/6/26 Andreas Pakulat <apaku at gmx.de>:
> > On 26.06.10 11:15:58, Valentin Pavlyuchenko wrote:
> >> Thanks for an answer!
> >> 
> >> Will it be ok if I write a patch that will write relative paths in the
> >> following way: "$PROJECT_ROOT/blah/blah" (with appropriate
> >> substitution when reading)?
> > 
> > Sure, feel free to do so, please use gitorious.org Merge Requests for
> > submitting the patch. Unfortunately reading/writing is scattered all
> > over the codebase.
> > 
> > Actually I think there's a second report related to this that suggests
> > to make the paths relative to the project.kdev4 file (that is currently
> > created inside the project source directory). That allows for moving the
> > .kdev4 into a separate dir at a later point...

Milian Wolff
mail at milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100709/c407f8f9/attachment.sig>

More information about the KDevelop-devel mailing list