mde/jake — pull request #94 by nibblebot (2012-01-23 17:18:26+00:00)
Title: 2 file tasks that share same dependency, when invoked, are not both executed

```
var fs = require('fs');
task('default', function(){})

desc('1')
file('1', ['a','b'], function() {
fs.writeFile('1', 'data', 'utf8', function(err) {
console.log('1');
complete();
});
}, {async: true})

desc('2')
file('2', ['a','c'], function() {
fs.writeFile('2', 'data', 'utf8', function(err) {
console.log('2');
complete();
});
}, {async: true})

desc('async')
task('async', function() {
var t1 = jake.Task['1'];
var t2 = jake.Task['2'];
t1.on('complete', function(){t2.invoke()})
t2.on('complete', function() {console.log('complete'); complete(); })
t1.invoke();
}, {async: true})
```
```
$ touch a b c
```
Try above code with and without patch after `touch`ing above files
Without patch, only task '1' executes. With patch, both tasks execute as expected