Created
January 24, 2010 23:01
-
-
Save tolmasky/285497 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rootNode = new StaticResourceNode("", null, StaticResourceNode.DirectoryType, YES), | |
cwd = FILE.cwd(); | |
rootNode.resolveSubPathAsDirectories(FILE.dirname(cwd)); | |
rootNode.resolveSubPath(cwd, StaticResourceNode.DirectoryType, function(cwdNode) | |
{ | |
var includePaths = global.OBJJ_INCLUDE_PATHS || ["Frameworks", "Frameworks/Debug"], | |
index = 0, | |
count = includePaths.length; | |
for (; index < count; ++index) | |
cwdNode.resolveSubPathAsDirectories(FILE.normal(includePaths[index])); | |
cwdNode.resolveSubPath("Frameworks/AppKit/CPView.j", StaticResourceNode.FileType, function() | |
{ | |
console.log(rootNode.toString(true)); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment