Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Run an ATL query
[ATL] Run an ATL query [message #101815] Sat, 14 March 2009 16:34 Go to next message
Hayfa is currently offline HayfaFriend
Messages: 19
Registered: July 2009
Junior Member
Hello,

My question is about the current available way to run an ATL query:

Is it simply with a Run configuration (if so, I tried it and it does not
generate any output text file, not even errors) or with an AM3 ANT script
just like this example
http://wiki.eclipse.org/index.php/AM3_Ant_Tasks#Examples_2 ?

PS: I am using eclipse 3.4.1 and ATL 2.0.2.

Thank you in advance.

Regards,

Hayfa.
Re: [ATL] Run an ATL query [message #101845 is a reply to message #101815] Sun, 15 March 2009 18:58 Go to previous messageGo to next message
Kelly Garces is currently offline Kelly GarcesFriend
Messages: 39
Registered: July 2009
Member
Hi,


> Is it simply with a Run configuration or with an AM3 ANT
> script

yes, you can launch an ATL query by using a Run configuration or an AM3
task. In both case you should:
1. print the result in the console
or
2. save the result into a file

You can print the query result using the keyword debug, like that:

query test = 1.debug('result');

You can save the result into a file as follows:

** Run configuration
query test = 1.writeTo('result.txt');

** AM3 task

<am3.query body="1" property="result">
<inModel />
...
</am3.query>

<echo message="${result}" file="result.txt"/>

Best regards,

--
Kelly Garces - Phd. student
AtlanMod & AsCoLa research teams
École des Mines de Nantes
4, rue Alfred Kastler
44307 Nantes Cedex 3 - France
Re: [ATL] Run an ATL query [message #102002 is a reply to message #101845] Mon, 16 March 2009 16:10 Go to previous message
Hayfa is currently offline HayfaFriend
Messages: 19
Registered: July 2009
Junior Member
Hi Kelly,

Thank you for your answer.

Actually, I have a problem with running an ATL query using a Run
configuration. It does not generate anything, not even in the console.
Normally , I can execute an m2m atl transformation without problem.

In fact, I am trying to execute an already existing example
(XML2ExcelText.atl) to generate an xml file.

PS: I am using eclipse 3.4.1 and ATL 2.0.2

Thank you.

Best regards,

Hayfa.
Previous Topic:[XMI] XMI parser
Next Topic:[ATL] Can not copy type of parameter
Goto Forum:
  


Current Time: Thu Dec 26 22:48:41 GMT 2024

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

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

Back to the top