Details
Description
Consider this project:
import qbs import qbs.TextFile CppApplication { type: base.concat("mytype") // Does not work // type: ["application", "mytype"] // Works files: "main.cpp" Transformer { Artifact { filePath: "mytype.txt" fileTags: "mytype" } prepare: { var cmd = new JavaScriptCommand(); cmd.description = "Generating file"; cmd.sourceCode = function() { var f = new TextFile(output.filePath, TextFile.WriteOnly); f.writeLine("Huhu!"); f.close(); } return cmd; } } }
Only the "mytype" type is being acted upon, i.e. the Transformer is being run, but the cpp file is not compiled.
I'm pretty sure I've also seen the opposite behavior. But never are both types being taken into account.
Attachments
For Gerrit Dashboard: QBS-675 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
95809,2 | fix property values of Application.type and friends | 1.3 | qbs/qbs | Status: MERGED | +2 | 0 |