[QBS] Always build an artifact

Christian Kandeler christian.kandeler at theqtcompany.com
Thu Dec 4 10:59:31 CET 2014

On 12/03/2014 10:18 PM, St├ęphane Fabry wrote:
> I'm trying to create an artefact (a simple text file) that contain the
> last date of build,
> so i just need to write the date 'now' each time the project is build.
> The problem is I don't know how to tell qbs to rebuild the artefact each
> time the project is build (or partially build) ?
> Has someone an idea how to do this ?

Yeah, we really should add some rule property that makes this kind of 
thing straightforward. You could file a bug report to enhance the 
visibility of this issue.
I assume you are using a Transformer item now? The workaround is to use 
a rule instead (give some random input tag, as there needs to be at 
least one) and in this rule, in addition to your real output artifact, 
declare a second one that you will never create and set its 
"alwaysUpdated" property to false (the filePath can be anything, as long 
as it's uniqe). This should achieve what you want.


More information about the Qbs mailing list