| Summary: | Changed paths for Generator component do not work | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Karsten Thoms <karsten.thoms> | ||||
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 1.0.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
this has been fixed in the meantime. Requested via bug 522520. -M. Requested via bug 522520. -M. |
Created attachment 182798 [details] Xtext Projects For a Maven based project I wanted to 'mavenize' the project structure of the Xtext projects. The projects are as follows pmaven-atom | +--pmaven-atom-rt Grammar project +--pmaven-atom-ui UI project Therefore the workflow configuration for the Generator component has been changed to: ---------------------------------------------------------------------- var grammarURI = "classpath:/org/sonatype/polyglot/maven/atom/Atom.xtext" var file.extensions = "atom" var projectName = "pmaven-atom-rt" var projectNameUi = "pmaven-atom-ui" var runtimeProject = "../pmaven-atom-rt" var pathUiProject = "../pmaven-atom-ui" Workflow { bean = StandaloneSetup { platformUri = "${runtimeProject}/.." } component = Generator { pathRtProject = runtimeProject pathUiProject = pathUiProject projectNameRt = projectName projectNameUi = projectNameUi srcPath = "/src/main/java" srcGenPath = "/target/generated/java" ---------------------------------------------------------------------- However, the value 'pathUiProject' is not injected correctly into the Generator component and the "PLUGIN_UI" outlet gets the path '../pmaven-atom-rt.ui'. It is expected that the value is "../pmaven-atom-ui" This leads to an error: java.io.FileNotFoundException: ../pmaven-atom-rt.ui/META-INF/MANIFEST.MF (No such file or directory) at org.eclipse.xtext.generator.Generator.mergeManifest(Generator.java:353) at org.eclipse.xtext.generator.Generator.generateManifestUi(Generator.java:390) Find attached the zipped projects.