views:

93

answers:

2

I've a bunch of projects with some common libraries in a SVN repository. The repository has some branches for in-production versions.

For this reason (checking out several versions on one computer, and minimizing swap time), I tried to configure all projects as much as possible with relative paths within the repository. (....\libraries\common for forms in .dpr and library searchpaths).

This is not 100% ideal (it occasionally gets confused if you file->open and browse to a different dir, but that is easily solved by opening a file in the rootdir (the dir with the .dpr)).

But now I started to use the ITE I see that the hierarchy built by the resource wizard contains absolute paths. (drive/full/path/to/checkout).

Does sb have a good solution to deal with this? Specially the ITE bit. Are there macro's in search paths that denote the working dir?

P.s. I've used visual sourcesafe so I'm aware of the usual subst tricks. I prefer a solution without any action on changing project trees. (the modifying of projects to use relative paths is one-off, and checked in, so not that painful)

A: 

File a QC request if one does not exist yet - it's not the only places where Delphi stubbornly uses absolute paths instead of relative ones. Especially the ITE got very little attention since it was introduces, and never polished.

ldsandon
What's the chance that they'll fix something in D2009?
Marco van de Voort
Zero, I am afraid. You will be lucky if they fix it in 2010 - and I won't bet on the next 201x either. Localization looks to be something on very low priority. The whole resource wizard can easily fail if you use some complex controls (i.e. Developer Express and some from JVCL), and that's an old standing bug. But filing and voting bugs is the only way to have them noticed.
ldsandon
A: 

I found a partial solution. In the first dialogue you can edit the rootdirectory (by playing with the tickmark so that "edit rootdir" gets enabled). If you set the rootdir to a directory that is the parent of all dirs with forms, the IDE remains in "relative" mode.

This is still not perfect (it now ends up in the rootdir instead of the app dir), but at least this works with branches. (and maybe a bit postediting the .dproj will solve even this

Update: this won't work, since the absolute path is still in every .dfn. It is just that the IDE will look nice, since the project shows the paths relative in the IDE (the paths in the .dfn are corrected with the rootdir path it seems)

Marco van de Voort