Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » The path is unmapped after changing Directorylayout
The path is unmapped after changing Directorylayout [message #896895] Fri, 20 July 2012 10:32 Go to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 304
Registered: July 2009
Location: Germany
Senior Member
Hi to anyone,

I have the directorylayout:

Root
- Build
- Plugins
--- Plugin 1
--- Plugin x
- Tests
--- Test-Plugin 1
--- Test-Plugin x

and want to build a ecore-model from xtext-file:

Starting my build in the Build-folder I call mwe-compounds like:

<workflow>
    <property file="org/xtext/example/GenerateMyDsl.properties"/>

    <property name="runtimeProject" value="../Tests/${projectName}"/>

	<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" platformUri="${runtimeProject}/.." scanClassPath="true"/>

	<component class="org.eclipse.emf.mwe.utils.DirectoryCleaner" directory="${runtimeProject}/src-gen"/>
	<component class="org.eclipse.emf.mwe.utils.DirectoryCleaner" directory="${runtimeProject}.ui/src-gen"/>

	<component class="org.eclipse.xtext.generator.Generator" mergeManifest="false">
		<pathRtProject value="${runtimeProject}"/>
		<pathUiProject value="${runtimeProject}.ui"/>
		<projectNameRt value="${projectName}"/>
		<projectNameUi value="${projectName}.ui"/>


But I get a exception:
Caused by: java.io.IOException: The path '/Plugins/org.eclipse.xtext.xtextdoc/src-gen/org/eclipse/xtext/xtextdoc/xTextDoc/Chapter.java' is unmapped
     [java] 	at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl.createOutputStream(PlatformResourceURIHandlerImpl.java:428)
     [java] 	at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createOutputStream(ExtensibleURIConverterImpl.java:339)
     [java] 	at org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter.createOutputStream(AbstractGeneratorAdapter.java:1440)
     [java] 	at org.eclipse.emf.mwe2.ecore.CvsIdFilteringGeneratorAdapterFactoryDescriptor$IdFilteringGenModelGeneratorAdapterFactory$IdFilteringGenClassAdapter.createOutputStream(CvsIdFilteringGeneratorAdapterFactoryDescriptor.java:73)
     [java] 	at org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter.generateJava(AbstractGeneratorAdapter.java:1104)



with a flat path structure:

Root
- Build
- Project1
- Project2
- TestProject1
- testProject2

this worked.

What do I have to change to make it working with new enviroment?

Thank you for your help
Best regards

Markus

[Updated on: Fri, 20 July 2012 10:33]

Report message to a moderator

Re: The path is unmapped after changing Directorylayout [message #898254 is a reply to message #896895] Thu, 26 July 2012 05:09 Go to previous messageGo to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 304
Registered: July 2009
Location: Germany
Senior Member
Hi again,

does anyone know?
Or is any information missing to answer this question.

Best regards
Markus
Re: The path is unmapped after changing Directorylayout [message #898266 is a reply to message #898254] Thu, 26 July 2012 05:45 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
have a look the platform URI stuff in the standalone setup

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: The path is unmapped after changing Directorylayout [message #898396 is a reply to message #898254] Thu, 26 July 2012 10:25 Go to previous messageGo to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 304
Registered: July 2009
Location: Germany
Senior Member
Hi Christian,

were does the platform URI have to link to?
Re: The path is unmapped after changing Directorylayout [message #898408 is a reply to message #898396] Thu, 26 July 2012 10:45 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi have no idea wanted to give a starting point only. If you se it to
the root the sub roots may have to be mentioned in some URIs too

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: The path is unmapped after changing Directorylayout [message #899401 is a reply to message #898408] Tue, 31 July 2012 17:04 Go to previous message
Markus Oley is currently offline Markus OleyFriend
Messages: 304
Registered: July 2009
Location: Germany
Senior Member
Ok, thank you anyway,

found another solution, refeactored pathstructure in svn
Previous Topic:interdependence between your Ecore and your Grammar(editor)
Next Topic:scoping problem
Goto Forum:
  


Current Time: Tue Apr 23 12:36:57 GMT 2024

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

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

Back to the top