[Qbs] Access "bundle.content" tag files

Jake Petroules Jake.Petroules at qt.io
Thu Jun 15 16:56:23 CEST 2017


Also note that the old "bundle" tag was only assigned to the bundle *directory*, whereas bundle.content is assigned to all of the files which constitute the bundle (which is what you want).

> On Jun 15, 2017, at 2:46 AM, Christian Kandeler <Christian.Kandeler at qt.io> wrote:
> 
> On Thu, 15 Jun 2017 11:04:31 +0200
> Dorian Jicquel <dorian.jicquel at mana-sys.fr> wrote:
> 
>> Before the update i used inputs.bundle[index] ( with "bundle" tag input 
>> ) to access every file from the tag but now i can't use 
>> inputs.bundle.content[index] ( "bundle.content" tag ? ) since i think 
>> the dot is used to access other objects in this case.
> 
> If the tag name is not a valid JavaScript identifier, you have to use the alternative syntax: inputs["bundle.content"][index].
> 
> 
> Christian
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs

-- 
Jake Petroules - jake.petroules at qt.io
The Qt Company - Silicon Valley
Qbs build tool evangelist - qbs.io




More information about the Qbs mailing list