Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to also export required maps #72

Open
marianopeck opened this issue Mar 26, 2021 · 2 comments
Open

Provide a way to also export required maps #72

marianopeck opened this issue Mar 26, 2021 · 2 comments
Labels
enhancement New feature or request exporting Issues related with exporting in Tonel format

Comments

@marianopeck
Copy link
Collaborator

Right now, there is no API to export all required maps of the specified maps to export. Read internal case 67852 for more details

@marianopeck marianopeck added enhancement New feature or request exporting Issues related with exporting in Tonel format labels Mar 26, 2021
@marianopeck
Copy link
Collaborator Author

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.

@marianopeck
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request exporting Issues related with exporting in Tonel format
Projects
None yet
Development

No branches or pull requests

1 participant