rakelibdir (was: Global rake tasks)

E

Esad Hajdarevic

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top