ANT Task [message #1061532] |
Sun, 02 June 2013 08:53  |
Eclipse User |
|
|
|
Hello,
I want to implement atl ant task, I found these two links.
http://wiki.eclipse.org/AM3_Ant_Tasks
http://wiki.eclipse.org/ATL_Howtos#How_can_I_tune_the_XML_output_of_ATL
and my built.xml is :
<project name="xml2ss" default="LoadModels">
<target name="LoadModels">
<am3.loadModel metamodel="%EMF" name="XML" path="MetaModels/XML.ecore"/>
<am3.loadModel metamodel="%EMF" name="SS" path="MetaModels/SS.ecore"/>
<am3.loadModel metamodel="XML" name="myModel-A" path="Input_SMN/export.xml">
<injector name="xml"/>
</am3.loadModel>
<am3.atl path="Transformation/instance.atl">
<!--
the header of the executed transformation is:
module instance;
create OUT : SS from IN : XML;
uses librairie;
-->
<inmodel name="XML" model="XML"/>
<inmodel name="IN " model="myModel-A"/>
<inmodel name="SS" model="SS"/>
<outmodel name="OUT " model="myModel-B" metamodel="SS"/>
<library name="librairie" path="Transformation/librairie.atl" />
</am3.atl>
<am3.atl path="Interop/Transformation/SS2XML.atl">
<!--
the header of the executed transformation is:
module SS2XML;
create OUT : XML from IN : SS;
-->
<inmodel name="SS" model="SS"/>
<inmodel name="IN" model="myModel-B"/>
<inmodel name="XML" model="XML"/>
<outmodel name="OUT" model="myModel-C" metamodel="XML"/>
</am3.atl>
<am3.saveModel model="myModel-C" path="Outputs/output.xml" >
<extractor name="xml"/>
</am3.saveModel>
</target>
</project>
it works but the result is an empty xml file.
may be it is a problem xmlns!
I need your help
thank you
Samar.
|
|
|
|
|
|
|
Re: ANT Task [message #1148623 is a reply to message #1122335] |
Mon, 21 October 2013 12:36  |
Eclipse User |
|
|
|
Ouafae Aidi wrote on Tue, 01 October 2013 09:07Hello,
For your example, You work with what version ATL, Eclipse, EMF?
I buil a same Example AM3, but I have this error:
loadModels:
BUILD FAILED
C:\Users\workspace_KeplerR_testAcccelo\Table2TabularHTML\build.xml:35: Problem: failed to create task or type am3.loadModel
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
I need your help
thank you
For this error, you should do this:
build.xml =>run configurations => JRE => Run in the same JRE as the workspace
|
|
|
Powered by
FUDForum. Page generated in 0.05699 seconds