aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/suspicious-calls/copy-command.qbs
blob: f913a8efbc7e3240cb6f0d27990ae0333a1710cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import qbs
import qbs.File

Product {
    type: ["out"]
    Group {
        files: ["test.txt"]
        fileTags: ["in"]
    }
    Rule {
        inputs: ["in"]
        outputFileTags: "out"
        prepare: {
            var cmd = new JavaScriptCommand();
            cmd.silent = true;
            cmd.sourceCode = function() { File.copy(input.filePath, output.filePath); };
            return [cmd];
        }
    }
}