|
|
Re: how to use xtext before M2M transformation [message #520837 is a reply to message #520576] |
Mon, 15 March 2010 14:39 |
|
Hello,
Actualy is not that simple. To interpret your dsl files you neer to invoke the xtext MweReader and supply the generated dslStandaloneSetup class. Then you can save the interpretead model as an xmi.
<workflow>
<property name='baseDir' value='platform:/resource/MyProject'/>
<property name='dslFile' value='${baseDir}/dslfiles/file.mydsl'
<property name="targetDir" value="${baseDir}/xmi"/>
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" platformUri=".."/>
<component class="org.eclipse.xtext.MweReader" uri="${dslFile}">
<register class="dslStandaloneSetup"/>
<outputSlot value="model"/>
</component>
<component class="org.eclipse.emf.mwe.utils.Writer">
<modelSlot value="model"/>
<uri value="${targetDir}/dsl.xmi"/>
</component>
</workflow>
When creating your xtext project check the "create generator project" option and look at it to see how your generated class is invoked.
My current issue is trynig to invoke both this (the workflow) and the subsequent ATL (in my case epsilon) transformations in a single ant file.
Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03596 seconds