Fixed Debug mode.

Reviewd by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2009-10-16 11:50:28 -07:00
1 parent 29b0aa7cde
commit aba7ea8bf1
2 files changed
+5 -6

No files matched your search

+3 -3
View File
@@ -105,13 +105,13 @@
- (CPString)pathForResource:(CPString)aFilename
{
var path = [self resourcePath] + '/' + aFilename,
var actualPath = [self resourcePath] + '/' + aFilename,
mappedPath = _URIMap["Resources/" + aFilename];
if (mappedPath)
return mappedPath;
return path;
return actualPath;
}
- (CPDictionary)infoDictionary
@@ -148,7 +148,7 @@
var platform = [self firstEligiblePlatform];
if (!platform)
throw "Engine not supported.";
throw "Engine not supported for " + [self bundlePath] + ". Supported engines: " + [self objectForInfoDictionaryKey:"CPBundlePlatforms"] + ".";
[CPURLConnection connectionWithRequest:[CPURLRequest requestWithURL:[self bundlePath] + '/' + platform + ".platform/" + [self objectForInfoDictionaryKey:"CPBundleExecutable"]] delegate:self];
}
+2 -3
View File
@@ -16,11 +16,10 @@ $LICENSE_FILE = FILE.join("CommonJS", "objective-j", "lib-js", "object
$BROWSER_FILE = FILE.join($PRODUCT, 'Objective-J.js')
$RHINO_FILE = FILE.join($PRODUCT, 'CommonJS.platform', 'Objective-J.js')
Files = ["Runtime/constants.js", "Runtime/utilities.js", "Runtime/json2.js", "Runtime/runtime.js", "Runtime/dictionary.js", "Runtime/plist.js", "Runtime/file.js", "Runtime/exception.js", "Runtime/preprocess.js", "Runtime/evaluate.js", "Runtime/bootstrap.js"];
//Files = new FileList("constants.js", "utilities.js", "json2.js", "runtime.js", "dictionary.js", "plist.js", "file.js", "exception.js", "preprocess.js", "evaluate.js", "bootstrap.js");
Files = new FileList("Runtime/constants.js", "Runtime/utilities.js", "Runtime/json2.js", "Runtime/runtime.js", "Runtime/dictionary.js", "Runtime/plist.js", "Runtime/file.js", "Runtime/exception.js", "Runtime/preprocess.js", "Runtime/evaluate.js", "Runtime/bootstrap.js");
if ($CONFIGURATION === "Debug")
Files.push("Runtime/debug.js")//Files.add('debug.js');
Files.add("Runtime/debug.js");
task ("build", [$BROWSER_FILE, $RHINO_FILE, $LICENSE_PRODUCT, $COMMONJS_PRODUCT, $COMMONJS_FRAMEWORK_PRODUCT]);