No, that's not your mistake.  Those two syntactic structures are equivalent
(the latter is a holdover from earlier days).  I do think I see your
mistake, however.

task doStuff { }

defines a "configuration" closure, which will execute when the script to
processed.

task doStuff << { }

defines an "action" closure, which will execute when the task is called.

On Fri, Aug 7, 2009 at 7:05 AM, barrymac <[email protected]> wrote:

>
> I just found out however that it only happens when the syntax for defining
> the task is as follows:
>
> task doStuff {
>
> but not when the syntax is:
>
> createTask('doStuff') {
>
> my mistake?
>


-- 
John Murph
Automated Logic Research Team

Reply via email to