aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/rad-after-incomplete-build/project_with_transformer.qbs
blob: dd4b4baed55802656d5af671fcfcc5f9f5fcd3a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import qbs
import qbs.TextFile

Product {
    type: "custom"
    Transformer {
        Artifact {
            fileTags: "custom"
            filePath: "oldfile"
        }
        prepare: {
            var cmd = new JavaScriptCommand();
            cmd.description = "creating file";
            cmd.sourceCode = function() {
                var f = new TextFile(output.filePath, TextFile.WriteOnly);
                f.close();
            }
            return cmd;
        }
    }
}