Hm, getting properties still can be useful for some kind of external scripting - using qbs from shell, for example. But i'm not sure why such scripting can't be using qbs itself and providing custom target.
Adding all targets to a project looks a bit hacky to me (i don't see other usecases), but it would work for now. Is it difficult to implement QBS-262? Иван Комиссаров 21 февр. 2014 г., в 20:19, Joerg Bornemann <joerg.bornem...@digia.com> написал(а): On 18-Feb-14 12:31, Иван Комиссаров wrote: >> If i understand you correctly, you want to list all products that are built >> using qbs and run products which name starts with "tst_". >> >> I have the same issue - i need to list all products. Is that possible? > > We've removed the "list all properties in the project" feature on > purpose, because we saw no good use case for it. Apologies to you guys > who actually relied on it. > > The "run all tests" use case is covered, once we've implemented action > targets, like "make tests" in qmake projects (QBS-262). > > Until then we could > > 1) bring back the removed feature. > > 2) extend the project object with information about the products. This > would be nice anyways and wouldn't be a temporary hack. > > One could write a project information file with all containing products > or properties or whatever like this: > > Transformer { > Artifact { fileName: "projectinfo.txt"; fileTags: ["stuff"] } > prepare: { > var cmd = new JavaScriptCommand(); > cmd.description = "creating stuff"; > cmd.sourceCode = function() { > var f = new TextFile(output.fileName, TextFile.WriteOnly); > f.write(JSON.stringify(project)); > f.close(); > } > return [cmd]; > } > } > > The project object doesn't hold much valuable information at the moment > but you get the idea. What do you think? > > > Cheers, > > Joerg > _______________________________________________ > QBS mailing list > QBS@qt-project.org > http://lists.qt-project.org/mailman/listinfo/qbs > _______________________________________________ QBS mailing list QBS@qt-project.org http://lists.qt-project.org/mailman/listinfo/qbs