sonatype/nexus — pull request #8 by cstamas (2011-10-24 15:28:57+00:00)
Title: NEXUS-4588: SnapshotRemover task cancellation is not properly handled

Snapshot remover makes two passes ("walks" in Nx lingo). Walker and entry was checking for cancellation, but 2nd pass did not.

Facts:
- The cancellation detection was added to the very beginning (entry) of the workhorse method
- The Walker does detects cancellation
- The 2nd pass was a simple for-cycle of paths collected in 1st pass, and while it was not doing a lot, it was iterating over the collection even if cancel happened.