Tasks represent a unit of work in Cake, and you use them to perform specific work in a specific order. A task can, for example, also have dependencies, criteria and error handling associated to it.

Defining Tasks How to define tasks
Dependencies How to make tasks dependent on each other
Criteria How to define criterias for tasks
Running Task For Collections How to run code for a collection of items
Error Handling How to implement error handling in tasks
Finally Block How to make sure an arbritrary piece of code is always executed
Asynchronous Tasks How to use asynchronous code in your build scripts