The path is unmapped after changing Directorylayout [message #896895] |
Fri, 20 July 2012 10:32 |
|
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
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04493 seconds