Forum: Ruby changing rake task dependencies, runs in wrong order

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
45196398e9685000d195ec626d477f0e?d=identicon&s=25 Trans (Guest)
on 2007-02-05 18:53
(Received via mailing list)
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: do |pkg|

  # 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?

This topic is locked and can not be replied to.