1Module {
2    property string p1
3    property string p2
4
5    Rule {
6        inputs: ["in1"]
7        Artifact {
8            filePath: "dummy1.txt"
9            fileTags: ["out1"]
10        }
11        prepare: {
12            var cmd = new JavaScriptCommand();
13            cmd.description = "Creating " + output.fileName + " with " + product.m.p1;
14            cmd.sourceCode = function() {};
15            return [cmd];
16        }
17    }
18
19    Rule {
20        inputs: ["in2"]
21        Artifact {
22            filePath: "dummy2.txt"
23            fileTags: ["out2"]
24        }
25        prepare: {
26            var cmd = new JavaScriptCommand();
27            cmd.description = "Creating " + output.fileName + " with " + product.m.p2;
28            cmd.sourceCode = function() {};
29            return [cmd];
30        }
31    }
32}
33