moritz
10/31/2022, 10:31 AMHelloFactory passing a config object to my observer's constructor? Or should I avoid adding a constructor to my observer entirely and instead rely on access to the session instance in the onFlowCreate method as done here for the nf-quilt plugin?
Having no clue about gradle, I'm also wondering how I can include and refer to non-Groovy assets. I would like to distribute a JSON file with my plugin that I will need to use in my plugin code. Could you give me some pointers on how to do that, please?
Thank you very much in advance.Abhinav Sharma
10/31/2022, 3:14 PMnf-azure plugin can offer some guidance https://github.com/nextflow-io/nextflow/tree/master/plugins/nf-azure/src/resources/nextflow/cloud/azure
It bundles JSON files which enumerate the available VMs per regionmoritz
10/31/2022, 5:11 PMJorge
10/31/2022, 6:12 PMJorge
10/31/2022, 6:14 PMJorge
10/31/2022, 6:16 PMJorge
10/31/2022, 6:17 PMJorge
10/31/2022, 6:21 PMdocker{
....
}
myplugin{
instances = 3
}
session.config.navigate('myplugin') as Map
will returns a Map as [ instances: 3 ]Jorge
10/31/2022, 6:23 PMresources folder are included in the jar and can be accesibles using standard java functions as ClassLoader.getResource("/myfile.json")Jorge
10/31/2022, 6:30 PMmoritz
10/31/2022, 7:12 PMAbhinav Sharma
11/01/2022, 6:57 AM