[Rake-devel] Rakefile optional when using a rake directory

Assaf Arkin assaf at labnotes.org
Sat Feb 23 20:47:28 EST 2008

On Feb 23, 2008, at 5:31 PM, Trans wrote:

> Hi--
> I'd like to suggest a simple feature addition to Rake. I would like to
> define rake tasks in a default subdirectory (preferably rake/) and
> have rake automatically load any files in it having a .rake extension
> when there is no Rakefile. If the Rakefile is present it would defer
> to it and not automatically load them. So this would strictly be an
> additional feature, and not cause any backward compatibility issues.
> I would very much prefer this for keeping my project folders as
> concise as possible. Right now nearly all my Rakefiles have but a
> single line in them telling them to load from the subdirectory,
> something which seems not all that uncommon these days. So it would be
> very nice not to have to bother with the Rakefile at all in these
> cases.

I'm not sure if this is documented anywhere, but if you place any file  
with the .rake extension inside the rakelib sub-directory, relative to  
the Rakefile, it will be automatically imported after the Rakefile is  


> Thanks,
> T.
> _______________________________________________
> Rake-devel mailing list
> Rake-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rake-devel

More information about the Rake-devel mailing list