Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329882 - Changed paths for Generator component do not work
Summary: Changed paths for Generator component do not work
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-10 06:00 EST by Karsten Thoms CLA
Modified: 2017-10-31 11:19 EDT (History)
0 users

See Also:


Attachments
Xtext Projects (446.79 KB, application/zip)
2010-11-10 06:00 EST, Karsten Thoms CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.