OfficineSoftware/Open-Integration-Server — Issue #1: Defining task dependencies causes troubles
Author: trashofmasters
Created: 2012-02-19 04:27:30+00:00
State: open

When the buildfile contains a task with at least a prerequisite like the one shown in the following example

```php
dependsOn('test');
```

the callback of the prerequisite task is not invoked, resulting in the test task not running properly.
The problem affects other tasks as well, in fact trying to run the ```test``` task will result in the same error, this is probably due the callback not being called at execution time.

The output of ```bin/amaka test``` is

```
Ois:Amaka build system 0.3a by Andrea Turso.
(loaded Amkfile in /home/trashofmasters/Development/ois)
test:

Fatal error: Class 'ois\util\FileSystem' not found in /home/trashofmasters/Development/ois/tests/ois/amaka/task/FileTaskTest.php on line 32

Call Stack:
0.0002 325636 1. {main}() /home/trashofmasters/Development/ois/bin/amaka:0
0.0043 669968 2. ois\amaka\cli\Command->run() /home/trashofmasters/Development/ois/bin/amaka:24
0.0115 1044328 3. ois\amaka\task\TaskRunner->run() /home/trashofmasters/Development/ois/src/ois/amaka/cli/Command.php:108
0.0115 1044488 4. ois\amaka\task\AbstractTask->execute() /home/trashofmasters/Development/ois/src/ois/amaka/task/TaskRunner.php:26
0.0115 1044516 5. ois\amaka\task\TestTask->invoke() /home/trashofmasters/Development/ois/src/ois/amaka/task/AbstractTask.php:172
0.0846 3824328 6. ois\amaka\task\PHPUnit\Runner->doRun() /home/trashofmasters/Development/ois/src/ois/amaka/task/TestTask.php:175
0.0878 4186732 7. PHPUnit_Framework_TestSuite->run() /home/trashofmasters/Development/ois/src/ois/amaka/task/PHPUnit/Runner.php:71
0.1414 5106664 8. PHPUnit_Framework_TestSuite->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:705
0.1415 5107056 9. PHPUnit_Framework_TestSuite->runTest() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:745
0.1415 5107056 10. PHPUnit_Framework_TestCase->run() /usr/local/lib/php/PHPUnit/Framework/TestSuite.php:772
0.1415 5107056 11. PHPUnit_Framework_TestResult->run() /usr/local/lib/php/PHPUnit/Framework/TestCase.php:749
0.1416 5107668 12. PHPUnit_Framework_TestCase->runBare() /usr/local/lib/php/PHPUnit/Framework/TestResult.php:649
0.1419 5162636 13. tests\ois\amaka\task\FileTaskTest->setUp() /usr/local/lib/php/PHPUnit/Framework/TestCase.php:799
```