changing rake task dependencies, runs in wrong order

Discussion in 'Ruby' started by Trans, Feb 5, 2007.

  1. Trans

    Trans Guest

    I'm confused. I'm trying to alter the dependencies of a premade rake
    task, and while it accepts it, it's actully running the dependcy after
    the task rather than before it. With this:

    Rake::GemPackageTask.new(spec) do |pkg|
    ...
    end

    # Don't show the clobber task, just always clobber when
    # creating packages. Maybe in future ask to make sure.
    Rake::Task['clobber_package'].comment = nil
    Rake::Task['repackage'].comment = nil
    task :package => [:clobber_package]

    Shouldn't it invoke clobber_package BEFORE package? I ran it with --
    trace and it's clearly doing the opposite. What's up?

    Thanks,
    T.
     
    Trans, Feb 5, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Trans
    Replies:
    1
    Views:
    184
    Gavin Sinclair
    Apr 26, 2006
  2. S. Robert James

    Rake, Namespaces, and dependencies

    S. Robert James, Nov 17, 2006, in forum: Ruby
    Replies:
    4
    Views:
    164
    S. Robert James
    Nov 17, 2006
  3. peppermonkey
    Replies:
    1
    Views:
    409
    Gregory Brown
    Feb 10, 2007
  4. Stéphane Wirtel
    Replies:
    3
    Views:
    575
    Stephane Wirtel
    Jun 15, 2007
  5. James Mead
    Replies:
    0
    Views:
    335
    James Mead
    Jan 15, 2008
  6. jandot
    Replies:
    2
    Views:
    242
    jandot
    Jun 11, 2008
  7. Hugh J. Devlin
    Replies:
    3
    Views:
    354
    Hugh J. Devlin
    Nov 16, 2008
  8. Andrew Wagner

    Rake task dependencies question

    Andrew Wagner, Sep 10, 2010, in forum: Ruby
    Replies:
    3
    Views:
    147
    Ryan Davis
    Sep 10, 2010
Loading...