# Rakelibdir (was: Global rake tasks)

**URL:** <https://www.ruby-forum.com/t/rakelibdir-was-global-rake-tasks/72369>\
**Category:** Ruby\
**Created:** [October 16, 2006, 8:35pm UTC](https://www.ruby-forum.com/t/rakelibdir-was-global-rake-tasks/72369 "2006-10-16T20:35:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esad\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/3da27b/32.png) [@Esad\_H](https://www.ruby-forum.com/u/Esad_H)\
**Post date:** [October 16, 2006, 8:35pm UTC](https://www.ruby-forum.com/t/rakelibdir-was-global-rake-tasks/72369/1 "2006-10-16T20:35:49Z")

</div>

I’ve tried posting on rake-devel, but my message didn’t get through, so  
I thought I could ask it here:

I’m trying to use -R (–rakelibdir) option to specify a directory where  
my rake scripts containing some admin tasks reside.

Basically these tasks (contained within .rake files) should be available  
from everywere, even if there’s no Rakefile in the directory I’m  
executing it from.

However (I’m using Windows XP), when I call rake like this:

rake -R=c:\utils\rakes -T

I get following output

rake aborted!  
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,  
Rakefile.rb)

Is -R option made for this at all? Does it support absolute pathnames? I  
looked at the rake source and  
Rake::Application#load\_rakefile seems to search for the Rakefile first,  
and then imports the tasks.

Greetings,

Esad
