Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 884947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:49:42+00:00 2026-05-15T12:49:42+00:00

I think I’m going mad. Can anyone help? I have the folder c:\project\bin I

  • 0

I think I’m going mad. Can anyone help?

I have the folder c:\project\bin
I run the following to execute my rake script

cd C:\project
rake

In my rake script I have:

require 'rake/clean'
CLOBBER.include('bin')

task :default => [:compile]

task :compile do
    # do nothing
end

It doesn’t delete the “bin” folder nor the contents of the “bin” folder. I’m running Ruby in Windows (1.86 or so) and installed rake using, gem install rake.

Have I missed something. I’ve tried –trace etc.. but get no feedback.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:49:43+00:00Added an answer on May 15, 2026 at 12:49 pm

    TL;DR: $ rake clobber


    As the answer above said, they are not implicilty invoked. Here is an example, as you asked for.

    ~/deleteme$ cd project
    total 8
    -rw-r--r--@ 1 josh  staff  110 Jun 27 06:04 Rakefile
    
    
    ~/deleteme/project$ cat Rakefile
    require 'rake/clean'
    CLOBBER.include('bin')
    
    task :default => ["compile"]
    
    task :compile do
      mkdir 'bin'
    end
    
    
    ~/deleteme/project$ rake
    (in /Users/josh/deleteme/project)
    mkdir bin
    
    
    ~/deleteme/project$ ls -l
    total 8
    -rw-r--r--@ 1 josh  staff  110 Jun 27 06:04 Rakefile
    drwxr-xr-x  2 josh  staff   68 Jun 27 06:05 bin
    
    
    ~/deleteme/project$ rake -T
    (in /Users/josh/deleteme/project)
    rake clean    # Remove any temporary products.
    rake clobber  # Remove any generated file.
    
    
    ~/deleteme/project$ rake clobber
    (in /Users/josh/deleteme/project)
    rm -r bin
    
    
    ~/deleteme/project$ ls -l
    total 8
    -rw-r--r--@ 1 josh  staff  110 Jun 27 06:04 Rakefile
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Think 2 entities OneToOne mapped. Person and Car. A Person can have a Car.
I think it can be done by applying the transformation matrix of the scenegraph
Think about the following: Your ISP offers you a dynamic ip-address (for example 123.123.123.123).
Think Design: I have many applications that share the same user database! Other tables
think about having a skript where you have some words as input. now you
Think of the following services on one box: SOCKS proxy HTTP proxy SSH service
I think that I am having a slow evening but I have a question
I think I just need someone to show me the obvious. I have a
I think I've asked this before but I can't find the question now, and
I think this is not really possible but worth asking anyway. Say I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.