Absolute paths in .kdev4/ dir

Aleix Pol aleixpol at kde.org
Sat Jul 10 11:12:05 UTC 2010


What do you want to fix with that?
To me it makes perfect sense to have the relative source path, actually I
think this should move to the project file and with absolute project files
that's not possible.

On Fri, Jul 9, 2010 at 9:35 PM, Milian Wolff <mail at milianw.de> wrote:

> 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
> on.
>
> > 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
> http://milianw.de
>
> --
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100710/bdf4c9c7/attachment.html>


More information about the KDevelop-devel mailing list