[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

I don't understand, why Rake dependencies?

Trans

4/25/2006 2:10:00 AM

In Rake, what's the difference between

task :strike => [ :coil ] do
# ...
end

and

task :strike do
coil
#...
end

Thanks,
T.

1 Answer

Gavin Sinclair

4/26/2006 12:27:00 PM

0

Trans wrote:
> In Rake, what's the difference between
>
> task :strike => [ :coil ] do
> # ...
> end

This will execute the :coil task if it hasn't already been executed,
whereas...

> task :strike do
> coil
> #...
> end

....this will execute the :coil task unconditionally.

Cheers,
Gavin