Files
cappuccino/Objective-J/Bootstrap.js
T
2010-01-27 02:55:56 -08:00

23 lines
664 B
JavaScript

makeExportsGlobal();
var rootNode = new StaticResourceNode("", null, StaticResourceNode.DirectoryType, YES),
cwd = FILE.cwd();
rootNode.nodeAtSubPath(FILE.dirname(cwd), YES);
rootNode.resolveSubPath(cwd, StaticResourceNode.DirectoryType, function(cwdNode)
{
var includePaths = exports.includePaths(),
index = 0,
count = includePaths.length;
for (; index < count; ++index)
cwdNode.nodeAtSubPath(FILE.normal(includePaths[index]), YES);
#ifndef RHINO
fileImporterForPath(FILE.join(cwd, "main.j"))("main.j", YES, function()
{
console.log(rootNode.toString(true));
console.log("done.");
});
#endif
});