What if you just do...

after_define do |project|
  project.task :upload do
    ...
  end
end

Remember that the 'upload' task is defined within each project; it only *
seems* to be a namespace-global task.

Daniel

On Wed, Jul 1, 2009 at 2:04 PM, Danny O'Connor
<[email protected]>wrote:

>
> Hi there,
>
> I'm trying to override a biuldr default task and wondering what is the
> easiest way.
>
> So for example I want to override the 'upload' task for all projects.
>
> I'm trying this in an Extension
>
> after_define do |project|
>     Rake::Task['upload'].clear_actions
>
>     Rake::Task['upload'].enhance ...
>
>
> But it doesn't seem to be working, I still get the default upload
> behaviour.
>
> Thanks in advance,
> Danny.
>

Reply via email to