Open marianopeck opened 3 years ago
Here is a way to do it from outside (without an internal provided API):
| writer path maps allMaps |
path := (CfsPath named: '.').
writer := TonelWriter new.
maps := #('Map1' 'Map2').
writer addConfigurationMaps: (maps collect: [:each | (EmConfigurationMap editionsFor: each) first withAllPossibleRequiredMaps ]) flattened asSet.
writer addApplicationsFromConfigurationMaps.
writer writeProjectInto: path.
There is also a forum post about this topic. And I do agree that using the existing "Export all required maps" to also control tonel export, makes sense.
Right now, there is no API to export all required maps of the specified maps to export. Read internal case 67852 for more details