I've uploaded the installer for the Delphi Unit Dependency Scanner (DUDS). You can find it here: http://www.easy-ip.net/delphi.html.

I've uploaded the installer for the Delphi Unit Dependency Scanner (DUDS). You can find it here: http://www.easy-ip.net/delphi.html.

There's currently no help file, so here are a few pointers:

- Create a new project and enter your root files. These can be .pas, .dpk, .dpr or .groupproj files. You can also enter a directory and it will be scanned for matching files. Paths that contain matching files will be added to the Search Path tab if you leave the check box checked.
- Enter additional Search Paths.
- Enter scope names if required.

Click Scan and away you go.

A few tips:

- All columns can be sorted.
- Double clicking file links in the tree will take you to the first instance of the file. You can choose not to use links in the settings but this can result in a gigantic tree structure.
- Double click any file under the "List" tab to take you to the corresponding file in the tree.
- When renaming files check "Dummy Run" to see what will be changed without making any updates.
- You can make as many changes as you like without re-scanning the files as all the data is also updated locally.

DISCLAIMER:
MAKE SURE YOU HAVE A BACKUP. Searching and replacing unit names can be VERY destructive and cannot be undone. Use at your own risk!

Please send bug reports, feature requests or observations to duds@easy-ip.net or post them here.

Comments

  1. Paul, thanks. I see in the tree that some file names are simply black, while others are in blue and underlined, as if they are links. It is not obvious to me what the blue underlined text is supposed to indicate.

    ReplyDelete
  2. Bill Meyer - Hi Bill. The blue names are links to the first instance of a unit. Double click a link and you will be taken to the instance. This is done to keep the size of the tree manageable by linking to identical branches rather than reproducing them every time. You can turn links off in the settings. If you do, you will see how big the tree gets :)

    ReplyDelete
  3. Paul Thornton Thanks again. Makes sense now. It just wasn't obvious to me. ;)

    ReplyDelete
  4. Thank you for this very handy piece of code. It's Priceless!!

    ReplyDelete
  5. Thank you, sir! After moving some procedures back and forth in my project, I've never noticed notorious circular dependencies! Spotting  one unused unit was indeed spectacular :)

    ReplyDelete
  6. Ilya S - Thats great Ilya :) I had the same experience. It helped a great deal in untangling some dependencies in our older code.

    ReplyDelete

Post a Comment