[Rake-devel] Task for nested instance of Rake

Torsten at Robitzki.de Torsten at Robitzki.de
Wed Feb 23 05:07:29 EST 2011


Am 23.02.2011 um 09:50 schrieb Jesper Tholstrup Pedersen (JUP):

> Do you mean to say that I can import a sub-rakefile into a certain
> namespace without altering the sub-rakefile?
> 

I think so. I haven't worked with namespaces but what I've read from the documentation, they might help you, solving your problems:
http://rake.rubyforge.org/files/doc/rakefile_rdoc.html (search for namespace on that page).

> If so how would you go about doing that?


I would try:

namespace "SubProject1"
	load "./SubProject1/Rakefile.rb"
end

best regards
Torsten


More information about the Rake-devel mailing list