buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Boisvert" <boisv...@intalio.com>
Subject Re: sources generation
Date Wed, 26 Nov 2008 17:10:58 GMT
If I have a task that needs to run before compilation,

  task 'before' do
    puts "i ran before"
  end

  task 'compile' => 'before'

alex

On Wed, Nov 26, 2008 at 9:03 AM, Ittay Dror <ittay.dror@gmail.com> wrote:

> hi,
>
>
> if i have a task that generate sources, how can i hook it up so it is the
> first task that runs for a project?
>
> * enhancing 'resources' is not good in my case, since it has sub resource
> task which already require the sources
>
> * resource task has no dependency on its sources as tasks, so i can't rely
> on creating the task with name as the the root path
>
> * resources.prerequisites.unshift doesn't work since
> resources.prerequisites is a temporary array (not @prerequisites)
>
>
> any other suggestions?
>
>
> ittay
>
>
> --
> --
> Ittay Dror <ittay.dror@gmail.com>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message