From c18922a349907af466c2f7c1f1a3251bf55bf529 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 27 Mar 2014 13:43:03 +0100 Subject: Replace deprecated construct in qbs files. "{in,out}put.fileName" -> "{in,out}put.filePath". Change-Id: Icf55489cdf2187f9f1a6f413054af1fba8025f4c Reviewed-by: Joerg Bornemann --- qbs/modules/pluginspec/pluginspec.qbs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'qbs') diff --git a/qbs/modules/pluginspec/pluginspec.qbs b/qbs/modules/pluginspec/pluginspec.qbs index f7e9127306..2b57b53d89 100644 --- a/qbs/modules/pluginspec/pluginspec.qbs +++ b/qbs/modules/pluginspec/pluginspec.qbs @@ -17,7 +17,7 @@ Module { prepare: { var cmd = new JavaScriptCommand(); - cmd.description = "prepare " + FileInfo.fileName(output.fileName); + cmd.description = "prepare " + FileInfo.fileName(output.filePath); cmd.highlight = "codegen"; cmd.pluginspecreplacements = product.pluginspecreplacements; cmd.plugin_depends = []; @@ -36,7 +36,7 @@ Module { cmd.sourceCode = function() { var i; var vars = pluginspecreplacements || {}; - var inf = new TextFile(input.fileName); + var inf = new TextFile(input.filePath); var all = inf.readAll(); // replace quoted quotes all = all.replace(/\\\"/g, '"'); @@ -58,7 +58,7 @@ Module { for (i in vars) { all = all.replace(new RegExp('\\\$\\\$' + i + '(?!\w)', 'g'), vars[i]); } - var file = new TextFile(output.fileName, TextFile.WriteOnly); + var file = new TextFile(output.filePath, TextFile.WriteOnly); file.truncate(); file.write(all); file.close(); @@ -85,12 +85,12 @@ Module { var args = [ "-no-format", "-output", - output.fileName, + output.filePath, xslFile, - input.fileName + input.filePath ]; var cmd = new Command(xmlPatternsPath, args); - cmd.description = "generating " + FileInfo.fileName(output.fileName); + cmd.description = "generating " + FileInfo.fileName(output.filePath); cmd.highlight = "codegen"; return cmd; } -- cgit v1.2.1