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 4071682
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:47:17+00:00 2026-05-20T16:47:17+00:00

I want to be able to create a rakefile on Windows 7 that I

  • 0

I want to be able to create a rakefile on Windows 7 that I can call with the rake -g <taskname> or rake --system <taskname> command. Where do I save the rakefile? I’ve tried creating a Rake directory under my user directory (c:\users\me\rake), but when I call rake -g hello_world, rake errors out saying it doesn’t know how to build the :hello_world task, which makes me think it just can’t see the rakefile. Here’s what my global rakefile looks like:

require 'rake'

desc "a hello world task"    
task :hello_world do    
  puts "hello from your global rakefile"    
end
  • 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-20T16:47:18+00:00Added an answer on May 20, 2026 at 4:47 pm

    Figured it out – turns out Rake expects global rakefiles to end in a “.rake” extension. I changed the example above to this:

    require 'rake'
    
    desc "a hello world task"    
    task :hello_world do    
      puts "hello from {__FILE__}"    
    end
    

    And saved it as “testing.rake” in my c:\users\me\rake\ directory. I opened up a command prompt to a random directory and ran “rake -g hello_world” and got this output:

    C:\Windows\system32>rake -g hello_world
    (in C:/Windows/system32)
    hello from C:/Users/me/Rake/testing.rake
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Delphi, I want to be able to create an private object that's associated
i want to be able to create a copy of the element that i
I want to be able to create users that have a straight up SHA-1
I want to be able to create a class (in Python) that once initialized
I want to be able to quickly create some simple ASP.NET reports that don't
I want to be able to create a type that has 3 floats (x,y,z).
I want to be able to create instances of GroovyObjectSupport (in Java) that wrap
I want to be able to create an animation that is started using a
I want to be able to create a method in a templated class that
I want to be able to create a GUID/UUID on the iPhone and iPad.

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.