Fixed: xml format now has the key sourcePath instead of path for the command objj and objj2objcskeleton

This commit is contained in:
Alexandre Wilhelm
2015-06-08 10:30:54 -07:00
parent 3f88e02587
commit d358f0d27b
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ exports.run = function(args)
{
var dict = new CFMutableDictionary();
dict.addValueForKey('line', e.line ? e.line : 0);
dict.addValueForKey('path', e.path ? e.path : mainFilePath);
dict.addValueForKey('sourcePath', e.path ? e.path : mainFilePath);
dict.addValueForKey('message', e.message);
errors.push(dict);
+2 -2
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.path());
dict.addValueForKey('sourcePath', 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.path())
dict.addValueForKey('sourcePath', this.URL.path())
dict.addValueForKey('message', message)
warnings.push(dict);
+1 -1
View File
@@ -213,7 +213,7 @@ function parser(args)
{
[errors addObject:@{
@"message": e.message,
@"path": sourcePath,
@"sourcePath": sourcePath,
@"line": e.line
}];