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
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 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  - ../local.example.mydsl/META-INF/MANIFEST.MF (Datei oder Verzeichnis nicht gefunden)
org.eclipse.emf.common.util.WrappedException: ../local.example.mydsl/META-INF/MANIFEST.MF (Datei oder Verzeichnis nicht gefunden)
	at org.eclipse.xtext.generator.Generator.mergeManifest(
	at org.eclipse.xtext.generator.Generator.generateManifestRt(
	at org.eclipse.xtext.generator.Generator.invokeInternal(
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(
Caused by: ../local.example.mydsl/META-INF/MANIFEST.MF (Datei oder Verzeichnis nicht gefunden)
	at Method)
	at org.eclipse.xtext.generator.Generator.mergeManifest(
	... 13 more

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

Current Time: Thu Feb 25 01:50:45 GMT 2021

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

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

Back to the top