Mwe2Launcher - Cannot create a resource with ANT [message #1810116] |
Wed, 31 July 2019 13:06  |
Eclipse User |
|
|
|
Hello !
I'm working on bringing the creation of a jar application from Eclipse to ANT.
In Eclipse, we use MWE2 at some point to generate some files and that means I also need to bring that code generation in the build.xml file for ANT.
In my current build.xml file, here is what I have :
<path id="project-classpath">
<fileset dir="C:\Program Files\Eclipse\eclipse_XText\plugins\" includes="**\*.jar" />
</path>
<property name="configurationDSLSrcDir" location="src/ca/cmcelectronics/iap7000/config"/>
<target name="MWE2Generation">
<java classname="org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher" classpathref="project-classpath" fork="false">
<arg value="${configurationDSLSrcDir}/GenerateConfigurationDSL.mwe2"/>
</java>
</target>
When I run the ANT script, I'm getting the following errors :
MWE2Generation:
[java] 0 ERROR Mwe2Launcher - Cannot create a resource for 'c:\e500mc_int178\trunk\Platform\Tools\PlatformDevTools\ConfigurationFileGeneratorTool\Code\ConfigFile\ca.cmcelectronics.iap7000.config\src\ca\cmcelectronics\iap7000\config/GenerateConfigurationDSL.mwe2'; a registered resource factory is needed
[java] java.lang.RuntimeException: Cannot create a resource for 'c:\e500mc_int178\trunk\Platform\Tools\PlatformDevTools\ConfigurationFileGeneratorTool\Code\ConfigFile\ca.cmcelectronics.iap7000.config\src\ca\cmcelectronics\iap7000\config/GenerateConfigurationDSL.mwe2'; a registered resource factory is needed
[java] at org.eclipse.xtext.resource.XtextResourceSet.getResource(XtextResourceSet.java:198)
[java] at org.eclipse.xtext.resource.SynchronizedXtextResourceSet.getResource(SynchronizedXtextResourceSet.java:26)
[java] at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:57)
[java] at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
.
.
.
I've looked around on the Internet and tried multiple suggestions found here and there but I wasn't able to fin anything helpful until now ...
Can anyone help out ?
Thanks !
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02310 seconds