Fixed: used url path (/Users/..) instead of absoluth path (file://Users/..) in the xml output format of objj

This commit is contained in:
Alexandre Wilhelm
2015-05-25 13:26:37 -07:00
parent f232b327c0
commit 3102c545ce
+3 -3
View File
@@ -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();