Bug 571229 - [Toolsmiths] Custom codegen template for bundle manifest
Summary: [Toolsmiths] Custom codegen template for bundle manifest
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Toolsmiths (show other bugs)
Version: 5.0.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-16 11:31 EST by Christian Damus CLA
Modified: 2021-04-08 03:20 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Damus CLA 2021-02-16 11:31:17 EST
It is easy to forget, as I have done numerous times when regenerating one of the many Ecore/UML models in Papyrus, to clean up the MANIFEST.MF that has dependency re-exports generated.

It should not be difficult to create a custom template that does not use re-exports in the MANIFEST.MF and to update all genmodels to use it via the "Dynamic Templates" capability of EMF code generation. The Toolsmiths APIs even provide for calculation of the version ranges to emit, which the base EMF template does not.

One possible drawback of this solution is that it will be necessary to keep this custom template in sync with changes as they are made in the default template in EMF. But this is mitigated by the expectation that such changes will be rare.