Skip to content

Commit

Permalink
Don't traverse subprojects (folders with Jakefiles).
Browse files Browse the repository at this point in the history
Reviewed by me.
  • Loading branch information
tolmasky authored and klaaspieter committed Apr 18, 2011
1 parent a578d48 commit 51d8fd5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Tools/xcodecapp/XCResourceMonitor.j
Expand Up @@ -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)
{
Expand Down

0 comments on commit 51d8fd5

Please sign in to comment.