The plugin can be used with Ant, Command Line, Duplicates finder (.NET), Duplicates finder (Java), FxCop, Inspection, Ipr, Maven2, MSBuild, NAnt, Rake, sln2003, sln2005, sln2008 runners. Swabra tab provides UI options to enable garbage cleaning.
Cleaning can be performed before or after the build.
First the plugin is turned on, it initiates clean checkout, after which in the checkout directory there are only essential files and no garbage. At this moment the state of the checkout directory is saved into a file in the Agent working directory named
<checkout_direcory_name>.snapshot using DiskDir format.
This snapshot is used later (after the build finish or at the start of the next build) to determine which files are build garbage. It is done by actual files' presence, last modification data and size comparison with corresponding records on the snapshot.
Сonfiguring plugin via UI options