Headless CINCO Generation
It should be possible to generate CINCO Products using the command line
Steps:
- Create a Headless Application that calls the CPGP using parameters such as:
cinco-headless.sh <workspacePath> <projectName> <CPDmodelName> (<additionalProject>(:<additionalProject>)*)?
- remove remaining UI Commands for the generators and replace them with method calls
- provide means to generate additional xtext languages (e.g. SIB Library)
- fix generation of build.properties and other files that prevent automatic product export
Steps taken:
- added Headless Application
- The CPGP starts
- removed UI Command for MGL 2 Ecore Generation
- Ecore Models can now automatically build during the CPGP by adding a GenModel to the CPD:
genModels{
genModel{
// Path to Genmodel
path platform:/resource/info.scce.cinco.product.flowgraph/model/ExternalLibrary.genmodel
// Generate also Edit-Project and Editor-Project
withEditCode
withEditorCode
}
}
- Allowing Xtext Languages in CPD File
xtextLanguages{
xtextLanguage{
project info.scce.cinco.product.statechart.dsl.action
}
xtextLanguage{
project info.scce.cinco.product.statechart.dsl.guard
}
}
Edited by Michael Lybecait