My favorites | Sign in
Logo
                
Show all Featured downloads:
TreeTrimSetup.msi setup.exe
People details
Project owners:
  steve.j.dunn

Tree Trim

This is a command line tool that trims your source code tree. It removes debug files, source control bindings, and temporary files.

An example would be:

treetrim.console.exe c:\my\tree -deletefromdisk

This would delete the debug files and folders in c:\my\tree


Updates:

v.1.0.1

  1. Includes a 'show in explorer' plugin which opens up an Explorer window showing the output of the previous plugin.
  2. The shell's context menu entries are now written to the correct key in the registry. Thanks to Matt (http://sticklebackplastic.com/) for the tip.

It is based on the excellent CleanSourcesPlus project.

It can compress, email, or copy the output. The tool is plugin based so can be extended to include whatever functionality you wish. It can be included as a task in your CI environment.

For more information, please see the FAQ page


Examples of the command line

Here's a couple of examples of the command line:

treetrim.console c:\my\tree -deletefromdisk

This removes the debug files and folders found in your source tree

treetrim.console c:\my\tree -workingcopy -deletefromdisk

This makes a working copy and removes the debug files and folders from the working copy.

treetrim.console c:\my\tree -workingcopy -deletefromdisk -zip:writeTo:c:\out.zip

This makes a working copy, removes the debug stuff, and writes the output to zipped file.

treetrim.console c:\my\tree -workingcopy -deletefromdisk -zip -email

This makes a working copy, removes the debug stuff, zips it up in a temporary file, and emails it.


The order of the tasks on the command line dictates the order in which the items are run. workingcopy is a task - it makes a working copy. zip is a task - it compresses the output of the previous task.

The output from one task is the input to the next task. In the example above, it went:

  • make a working copy
  • remove the debug -- in the temporary folder that the previous task created
  • zip it -- zips the contents of that folder
  • email it -- emails the content of the previous task, which is a zip file

Please also take a look at Tree Trim discussion group.









Hosted by Google Code