changing rake task dependencies, runs in wrong order

T

Trans

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top