[Qbs] Second rule reads empty file generated by first rule

Joerg Bornemann joerg.bornemann at qt.io
Thu Oct 12 10:25:03 CEST 2017


On 10/11/2017 07:11 PM, Denis Shienkov wrote:

> I have a project with some rules: 'producer' and 'consumer',
> 
> The 'producer' generates an artifact with the JSON file, and the 
> 'consumer' receive this artifact on input and does trying to read 
> content of this JSON file.
> 
> BUT: The consumer always reads an empty content, even the file exists 
> and is not empty.

The reason might be: You don't call close() on the TextFile you're writing.


BR,

Joerg



More information about the Qbs mailing list