buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Spiewak <djspie...@gmail.com>
Subject Re: How to call rake task from builds invocation ?
Date Sun, 15 Mar 2009 14:42:50 GMT
Use the normal 'task' and 'file' syntax standard with Rake.  The  
define method is only for projects.  Oh, and there is no need to  
require rake, Buildr already brings it into every buildfile.

One thing you should be aware of is the fact that every project  
defines a Rake namespace, so tasks defined within a define block must  
be fully-quallified when invoked.

Daniel

On Mar 15, 2009, at 3:53 AM, Sakari Isoniemi  
<sakari.isoniemi@gmail.com> wrote:

> How a rake task is called inside a buildr project from buildr  
> coomand line ?
>
> In the buildr buildfile must be defined
>
>   require "rake"
>
> and the task definiton is
>
>  define "doSomething" do
>    puts 'task doSomething called'
>  end
>
> => This won't work and the solution is ?

Mime
View raw message