Skip to content

Dependencies does not work as expected #2

@darkstar06

Description

@darkstar06

Hallo,

here is a Example Rakefile which does not work as expected.
At the first run, everything is ok.
Task default, mod1 and mod2 will be executed.
If you rake mod1_clean and rerun rake, mod1 and default will be executed but
mod2 will not be executed.

I would expect mod1 is a pre-requisition of mod2 and mod2 should be rerun if mod1 is updated.

require "biorake/lib/biorake"

event :default => [:mod1, :mod2] do
    puts "execute task default"
end

event :mod1 do 
    puts "execute task mod1" 
end

task  :mod1_clean do 
    rm FileList["./.rake/mod1*"] 
end

event :mod2 do 
    puts "execute task mod2" 
end

Regards darkstar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions