From 3102c545ceccbcbdabafe5d059c6398028192b4e Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Mon, 25 May 2015 13:26:37 -0700 Subject: [PATCH] Fixed: used url path (/Users/..) instead of absoluth path (file://Users/..) in the xml output format of objj --- Objective-J/ObjJAcornCompiler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Objective-J/ObjJAcornCompiler.js b/Objective-J/ObjJAcornCompiler.js index b1e819d21..f18dc6387 100644 --- a/Objective-J/ObjJAcornCompiler.js +++ b/Objective-J/ObjJAcornCompiler.js @@ -398,7 +398,7 @@ var ObjJAcornCompiler = function(/*String*/ aString, /*CFURL*/ aURL, /*unsigned* { var dict = new CFMutableDictionary(); dict.addValueForKey('line', e.line); - dict.addValueForKey('path', this.URL.absoluteString()); + dict.addValueForKey('path', this.URL.path()); dict.addValueForKey('message', message); print(CFPropertyListCreateXMLData([dict], kCFPropertyListXMLFormat_v1_0).rawString()); @@ -468,7 +468,7 @@ ObjJAcornCompiler.prototype.compilePass2 = function() { var dict = new CFMutableDictionary(); dict.addValueForKey('line', warning.line) - dict.addValueForKey('path', this.URL.absoluteString()) + dict.addValueForKey('path', this.URL.path()) dict.addValueForKey('message', message) warnings.push(dict); @@ -698,7 +698,7 @@ ObjJAcornCompiler.prototype.error_message = function(errorMessage, node) { var dict = new CFMutableDictionary(); dict.addValueForKey('line', pos.line); - dict.addValueForKey('path', this.URL.absoluteString()); + dict.addValueForKey('path', this.URL.path()); dict.addValueForKey('message', errorMessage); return CFPropertyListCreateXMLData([dict], kCFPropertyListXMLFormat_v1_0).rawString();