I'd like to specify an environment variable for use in the source path (library path) at a project level.
We often have a couple of versions checked out of our SVN repository at the same time in different directories, and I'd like to specify the repository root for a project in relative terms at a project level. I could then use that path in a project's source path and I wouldn't have to include indecipherable dot dot slashes (..\
) in paths.
For example, say I have checked out trunk to c:\projects\trunk
. Then underneath there I have a project in <repositoryroot>\Foo\Bar\
under trunk
which uses the Delphi Spring framework under <repositoryroot>\components\external\Spring4d
. I end up with a whole bunch of directories in the search path with ..\..\External\Spring4D\Source
at the beginning. For example ..\..\External\Spring4D\Source\Base\Collections
. I would like to be able to be able to use ${Spring4D}
instead, producing ${Spring4D}\Base\Collections\
, which is much less wordy and it means that if you move a project or component you can change one value and it updates all paths.
I know that you can do this on a Delphi level by specifying paths in Delphi's environment variables, but I would like to achieve the same thing on a project level or repository level.
Does anyone have any ideas on how to achieve this? Are there any settings or even add-ins that would allow this sort of functionality?