aboutsummaryrefslogtreecommitdiffstats
path: root/qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2014-03-27 13:43:03 +0100
committerChristian Kandeler <christian.kandeler@digia.com>2014-03-27 13:57:53 +0100
commitc18922a349907af466c2f7c1f1a3251bf55bf529 (patch)
treee7bc9ae8f0723ff7c1b808156231dc5d3f5805c6 /qbs
parent2d8f1247fc79367f4d27ac25e6ddea4f7c0edc1a (diff)
Replace deprecated construct in qbs files.
"{in,out}put.fileName" -> "{in,out}put.filePath". Change-Id: Icf55489cdf2187f9f1a6f413054af1fba8025f4c Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'qbs')
-rw-r--r--qbs/modules/pluginspec/pluginspec.qbs12
1 files changed, 6 insertions, 6 deletions
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;
}