Is generate_files a FileTask? If so, it shouldn't execute if none of its dependencies have changed.
(Also, reminder that in Rake tasks are only executed if needed? returns true) alex On Mon, Apr 30, 2012 at 11:48 PM, Dominic Graefen <[email protected] > wrote: > Hey guys, > > I am currently implementing a custom test-framework for one of my > buildr-plugins. > I enhance the test-task with a task that automatically generates > test-suites prior to running them. > > Something like this: > > def initialize(test_task, options) > super > @task.compile.enhance [generate_files] > @task.project.clean.enhance [clean_files] > end > > > > But somehow these tasks are executed all the time, > for example when I run "buildr clean" it will still run generate_files. > > How would one go on to make these tasks adhere the buildr style of > execution, > so for example when I call "buildr build test=no" that the dependencies > I've added to the tesk task won't be invoked and so on. > > Cheers, > > -- > Dominic Graefen > >
