[Rake-devel] [PATCH] clean.rb, directories

TRANS transfire at gmail.com
Sun Feb 4 22:39:13 EST 2007

On 2/4/07, Jim Weirich <jim at weirichhouse.org> wrote:
> Daniel Berger wrote:
> > Hi,
> >
> > This is a patch for the clean task, so that it only deletes files, not
> > directories.
> [...]
> > This addresses an earlier email where someone brought up the fact that
> > "rake clean" deletes a directory named 'core', not just core files.
> > Since I hit it myself recently, I figure I should submit a patch. :)
> Thanks for the suggestion.  However, prohibiting CLEAN from deleting
> directories feels like it is cutting off the arm to fix a hangnail.
> CLEAN should be able to delete any temporary files created during a
> build process, and that might include directories.
> I would rather see a solution targeted explicitly at the "core"
> directory issue.

Perhaps it would be a good time to bring this up. In setting up my
rake tasks I've sort of took the opposite approach to CLEAN and
created IGNORE. When building, say a package, I just have it include
everything but what's in IGNORE, so there's no need to run 'clean'


More information about the Rake-devel mailing list