Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329882

Summary: Changed paths for Generator component do not work
Product: [Modeling] TMF Reporter: Karsten Thoms <karsten.thoms>
Component: XtextAssignee: 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:
Description Flags
Xtext Projects none

Description Karsten Thoms CLA 2010-11-10 06:00:24 EST
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.
Comment 1 Sven Efftinge CLA 2012-11-19 08:40:25 EST
this has been fixed in the meantime.
Comment 2 Eclipse Webmaster CLA 2017-10-31 11:07:47 EDT
Requested via bug 522520.

-M.
Comment 3 Eclipse Webmaster CLA 2017-10-31 11:19:15 EDT
Requested via bug 522520.

-M.