On Wed, 14 Mar 2012 11:52:33 +0000, Simon Dean wrote: ... > I use Rake and Gradle (migrated to Gradle from Maven). Rake is used for .NET > codebases and Gradle for Java. It's very easy for files to slip through a > "clean" task.
Actually the whole notion of a 'clean task' is misleading. Any build task should automatically contribute to a list of files/directories to be deleted on 'clean'. After all, e.g. a javac task incarnation knows what directories it would create, so it can put them on the clean list. (Speaking for ant here, other build tools may be smarter there.) > Problem is, a "clean" task doesn't "fail fast" It can't. Failure there is an omission to do something; which could at best be noted after the fact by the output of 'svn clean -n' being nonempty. Andreas -- "Totally trivial. Famous last words." From: Linus Torvalds <torvalds@*.org> Date: Fri, 22 Jan 2010 07:29:21 -0800