delphi - How to keep uses list of several projects identical -
i have client application , test application. if adds/removes units client application, same changes happen test application.
i can think of 3 ways it, have drawbacks
1. manually update test project uses list in dpr.
the problem here obvious, requires manual intervention per project.
2. use shared .inc file contains list of used units (list of frmxxx in '\forms\frmxxx.pas'...)
ide doesn't .inc files in project file , again require manual work maintain
3. same #2, use shared unit instead of .inc file. instead of updating .inc update shared .pas
ide not consider files used shared unit files in project , wouldn't listed in view unit dialog
are there other ways keep uses lists of multiple projects in sync i'm missing ?
currently using d2007 doesn't matter.
you use build tool apache ant, maintain unit names in script file (or configuration file), , let ant replace placeholder in *.dpr files using replace task.
this regenerate dpr file automatically , keep them in sync.
Comments
Post a Comment