blob: 65437311e62e5c6d331dedafb949b37961cf0755 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import qbs
import qbs.TextFile
Product {
type: ["output"]
Group {
files: ["input.txt"]
fileTags: ["input"]
}
Rule {
inputs: ["input"]
Artifact {
filePath: "dummy"
fileTags: ["output"]
}
prepare: {
var cmd = new JavaScriptCommand();
cmd.description = "Creating output";
cmd.textFile = new TextFile(input.filePath, TextFile.ReadOnly);
cmd.sourceCode = function() {
var content = textFile.readAll();
textFile.close();
}
return [cmd];
}
}
}
|