Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Property Generator.pathRtProject used in two views of the model
Property Generator.pathRtProject used in two views of the model [message #758832] Thu, 24 November 2011 16:34
Michael Burkhardt is currently offline Michael BurkhardtFriend
Messages: 64
Registered: July 2009
Member
Hello *,


I try to customize my XText 2.1.0 project. Therefore I need different identifier in Eclipse projekt name and file system directory name. Both of them point to the root project.

The error stack trace is appended. My configuration of the GenerateMyDsl.mwe2 is
module org.xtext.example.mydsl.GenerateMyDsl

import org.eclipse.emf.mwe.utils.*
import org.eclipse.xtext.generator.*
import org.eclipse.xtext.ui.generator.*

var grammarURI = "classpath:/org/xtext/example/mydsl/MyDsl.xtext"
var file.extensions = "mydsl"
var projectName = "local.example.mydsl"
var projectDirectoryName = "otherfoldername/foo"

Workflow {
    bean = StandaloneSetup {
        scanClassPath = true
        platformUri = "../.."
    }
    ...
    component = Generator {
    	// pathRtProject = projectName
        pathRtProject = "../${projectName}"
        // pathUiProject = "${runtimeProject}.ui"
        pathUiProject = "../${projectName}.ui"
        // pathTestProject = "${runtimeProject}.tests"
        pathTestProject = "../${projectName}.tests"
        // projectNameRt = projectName
        projectNameRt = projectDirectoryName
        projectNameUi = "${projectName}.ui"
        language = {
            uri = grammarURI
            fileExtensions = file.extensions
    ...



In my opinion, the property Generator.pathRtProject = "../${projectName}" is the problem. This is used first as Eclipse project name, secondly this property is used as path description in the file system.

Maybe I'm wrong, but I think the lines 374,375 of Generator.java is the reason for this.

What can I do now to fix this problem?


Ciao, Micha






---

error stack trace
54850 [main] ERROR g.eclipse.xtext.generator.Generator  - java.io.FileNotFoundException: ../local.example.mydsl/META-INF/MANIFEST.MF (Datei oder Verzeichnis nicht gefunden)
org.eclipse.emf.common.util.WrappedException: java.io.FileNotFoundException: ../local.example.mydsl/META-INF/MANIFEST.MF (Datei oder Verzeichnis nicht gefunden)
	at org.eclipse.xtext.generator.Generator.mergeManifest(Generator.java:408)
	at org.eclipse.xtext.generator.Generator.generateManifestRt(Generator.java:375)
	at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:134)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:97)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:73)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:64)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:55)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Caused by: java.io.FileNotFoundException: ../local.example.mydsl/META-INF/MANIFEST.MF (Datei oder Verzeichnis nicht gefunden)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:120)
	at org.eclipse.xtext.generator.Generator.mergeManifest(Generator.java:394)
	... 13 more




Previous Topic:Errors with a different folder name
Next Topic:Complete example Custom Validator Test?
Goto Forum:
  


Current Time: Sun Apr 05 22:35:25 GMT 2020

Powered by FUDForum. Page generated in 0.01829 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top