Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > changing rake task dependencies, runs in wrong order

Reply
Thread Tools

changing rake task dependencies, runs in wrong order

 
 
Trans
Guest
Posts: n/a
 
      02-05-2007
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 ackage => [: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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rake finds & runs task, but doesn't show in --tasks list Hugh J. Devlin Ruby 3 11-16-2008 12:32 AM
rake published rdoc version and arity of Rake::Task#execute - wrongnumber of arguments (0 for 1) James Mead Ruby 0 01-15-2008 05:42 PM
[Rake] call a task of a namespace from an other task. Stéphane Wirtel Ruby 3 06-15-2007 06:52 AM
Rake and rake aborted! Rake aborted! undefined method `gem' for main:Object peppermonkey Ruby 1 02-10-2007 04:43 AM
Changing the order of the processes in the task bar? marist@erolls.invalid Computer Support 0 07-17-2005 03:19 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57