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

Denis Shienkov denis.shienkov at gmail.com
Thu Oct 12 10:50:50 CEST 2017


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

Ohh.. Yes, exactly!! Many many thanks, thanks for your time. )))

BR,
Denis

2017-10-12 11:25 GMT+03:00 Joerg Bornemann <joerg.bornemann at qt.io>:

> 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
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20171012/ee38c226/attachment.html>


More information about the Qbs mailing list