Is there a simple automated way to find out all the source files associated with a Delphi project?

I like to back up the source code for the project when I release the version. I am using GExperts project backups that seem to collect all the files in the project manager into a ZIP file. You can also add arbitrary files to this set of files, but I am always aware that I did not necessarily get all the files. Unless I specifically go through the usage suggestions and add all the units to which I have sources for the project, I will never be sure to save all the files needed to recreate the installed / executable file.

I thought about moving the application to go through the project, following all the units used and looking at all the search paths and seeing if there is a source file available for this device and creating a list of files for backup so, but hey maybe someone has already done this work?

+3
source share
4 answers

You should (highly recommend) look in Versioning.

eg. SVN(subversion),CVS

This will allow you to control the changes of your entire source. This will allow you to add or remove source files, roll back merging and all other nice things related to managing project sources.

This WILL save your $% # one day.

+12
source

You can interpret your question in two ways:

  • , ,
  • , ,

-, , , - .

- , .

- - , :

  • .
  • .
  • ; , 1 .
  • ( ) , , , , , .
  • , , 3 .
  • , .
  • .
  • , , , .

( // ).

, ( ), , , : , , - .

, ( , ).

-

+1

, , , .

, , - , DirList dcu. .dcu .pas .

, .inc , .pas, , , ?

The value of this utility for me is that the second utility utility makes a list of all .pas files in my source tree that do not have corresponding .dcu files. This (after full compilation of all programs) usually shows some "unwanted" .pas files that are no longer used.

+1
source

To get a list of all units compiled into an executable, you can let the compiler generate the MAP file. This file will contain entries for all units used.

+1
source

All Articles