[DUG] Source Control - Sharing files between projects
Paul Heinz
paul at accredo.co.nz
Wed Sep 26 11:44:36 NZST 2007
David asked:
> 1. Does anyone know how to reliably achieve similar shared
> file between folders functionality in Perforce?
Yes, you can map the same file(s) into multiple work spaces (or
clientspecs in Perforce terms) to use them in multiple projects. It's a
different technique but it should probably offer you the intended
results. I'd also stronhly recommend getting a copy of the book
'Practical Perforce' from Amazon which was recently written by one of
the Perforce architects (Laura Wingerd). It covers questions like this
which crop up often and possibly many others you may have too.
> 2. Most development companies must have similar shared source
> files. How do you structure your projects and source files?
> (Note: I am talking about source files used by projects here,
> not files which are compiled into VCL packages)
Yeah. It's a bit awkward in Delphi (well in D7 and earlier) due to the
way Delphi futzes with paths that move up from the project directory and
then back down in to a shared directory across projects. So, we moved to
having a top level folder which the .dprs sit in and then a Products
(aka Projects) folder containing the unique units and a Common folder
containing the shared units. This seems to work pretty well so far.
TTFN,
Paul.
More information about the Delphi
mailing list