mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-10 02:40:59 +00:00
Don't traverse subprojects (folders with Jakefiles).
Reviewed by me.
This commit is contained in:
1 parent
a578d4881d
commit
51d8fd512a
1 file changed
+10
-2
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user