I would have needed the first one to enforce it, and the second sounds like
an even nicer way to make sure the right version of Rake is used, but it
might be a bit too much work.
Thanks for the help!

Antoine

On Wed, Aug 5, 2009 at 17:35, aslak hellesoy <[email protected]>wrote:

>
>
>> Hi,
>>> I'd like to know if it's possible to enforce the version of Rake to run a
>>> Rakefile from the Rakefile.
>>>
>>
> Maybe I misunderstood your question. You want to launch/fork a particular
> version of Rake from a Rakefile?
> I guess you could just use the full path to that version's rake script:
>
> sh "/full/path/to/other/rake mytask"
>
> You can find that path using some Gem. methods and look for a specific
> version. Look in the Gem doc/sources.
>
> Aslak
>
>
>> Put this at the 1st line in your Rakefile
>>
>> raise "You need rake 0.8.7. You have #{RAKEVERSION}" unless RAKEVERSION ==
>> '0.8.7'
>>
>>
>>>
>>> Thanks,
>>>
>>> Antoine
>>>
>>> _______________________________________________
>>> Rake-devel mailing list
>>> [email protected]
>>> http://rubyforge.org/mailman/listinfo/rake-devel
>>>
>>
>>
>
_______________________________________________
Rake-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rake-devel

Reply via email to