blob: 9d6482f90c601c75e1f5553bd5ecc71203a8f4bf (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
|
Product {
name: "p"
type: "p_type"
Rule {
multiplex: true
Artifact { filePath: "x.txt"; fileTags: "x" }
Artifact { filePath: "y.txt"; fileTags: "y" }
Artifact { filePath: "p.txt"; fileTags: "p_type" }
prepare: {
var cmd = new JavaScriptCommand();
cmd.silent = true;
cmd.sourceCode = function() {};
return cmd;
}
}
Rule {
multiplex: true
Artifact { filePath: "x2.txt"; fileTags: "x" }
prepare: {
var cmd = new JavaScriptCommand();
cmd.silent = true;
cmd.sourceCode = function() {};
return cmd;
}
}
Rule {
multiplex: true
inputs: "x"
excludedInputs: "y"
Artifact { filePath: "dummy"; fileTags: "p_type" }
prepare: {
console.info("inputs.x: " + (inputs.x ? inputs.x.length : 0));
console.info("inputs.y: " + (inputs.y ? inputs.y.length : 0));
var cmd = new JavaScriptCommand();
cmd.silent = true;
cmd.sourceCode = function() {};
return cmd;
}
}
}
|