[Qt-creator] JSON project wizard - generating with Scanner

Marco Piccolino marco.a.piccolino at gmail.com
Wed Sep 1 18:24:58 CEST 2021


I noticed that Scanner actually scans TargetPath, not WizardDir, so it's no
use for me.
What is a use case for Scanner?
https://doc.qt.io/qtcreator/creator-project-wizards.html#scanner-generator
I guess I'll have to add all files manually.
MP


Il giorno mer 1 set 2021 alle ore 17:11 Marco Piccolino <
marco.a.piccolino at gmail.com> ha scritto:

> Hello, I'd like to add a whole subdirectory called "usecases" to a QC
> "project" JSON wizard template.
>
> The subdirectory is present in the local template folder, directly
> contained in the one that has wizard.json.
>
> I tried to add this right after the "Files" generator (with and without
> the "binaryPattern" line):
>
> {
>                "typeId": "Scanner",
>                "data": {
>                        "binaryPattern":".+",
>                        "subdirectoryPatterns": ["^usecases$"]
>                }
>  }
>
> but nothing gets copied over, nor mentioned in the Summary page before
> project creation.
> The "Files" sections works all right instead.
>
> Qt Creator 4.14.1 on Windows 10.
>
> Am I missing anything?
>
> Many thanks,
> Marco Piccolino
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20210901/9bb81054/attachment.html>


More information about the Qt-creator mailing list