Don't traverse subprojects (folders with Jakefiles).

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I authored and Klaas Pieter Annema committed 2011-04-18 10:36:56 +02:00
1 parent a578d4881d
commit 51d8fd512a
1 file changed
+10 -2
+10 -2
View File
@@ -31,8 +31,16 @@ var FILE = require("file"),
m_removedFilePaths = [];
m_editedFilePaths = [];
var paths = new FileList(m_pattern),
mtimesForFilePaths = [CPMutableDictionary new];
// FIXME: There must be a better way to do this.
var subProjects = new FileList(FILE.join(FILE.dirname(FILE.dirname(m_pattern)), "*/**/Jakefile")),
paths = new FileList(m_pattern);
subProjects.forEach(function(aPath)
{
paths.exclude(FILE.join(FILE.dirname(aPath), "**", "*"));
});
var mtimesForFilePaths = [CPMutableDictionary new];
paths.forEach(function(aPath)
{