Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] How compile ATL files in headless mode
[ATL] How compile ATL files in headless mode [message #106553] Mon, 15 June 2009 07:04 Go to next message
Miguel Llàcer San Fernando is currently offline Miguel Llàcer San FernandoFriend
Messages: 63
Registered: July 2009
Member
Hi,

I’m trying to build an Eclipse product in headless mode which includes ATL
transformations. I can not manage to have the .atl files compiled into
asm before packaging the product.
Does anybody know what should be done to carry out this step?

thanks a lot.
Re: [ATL] How compile ATL files in headless mode [message #106567 is a reply to message #106553] Mon, 15 June 2009 07:45 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 301
Registered: July 2009
Senior Member
Hello,

Using ATL3.0 you can call the compileWithProblemModel(InputStream in,
OutputStream outputStream) method to compile from .atl to .asm files.
See
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org .eclipse.m2m.atl/plugins/org.eclipse.m2m.atl.engine/src/org/ eclipse/m2m/atl/engine/compiler/AtlDefaultCompiler.java?root =Modeling_Project&view=markup
for more details.

Best regards,

William

Miguel Llácer San Fernando a écrit :
> Hi,
>
> I?m trying to build an Eclipse product in headless mode which includes
> ATL transformations. I can not manage to have the .atl files compiled
> into asm before packaging the product.
> Does anybody know what should be done to carry out this step?
>
> thanks a lot.
>
Re: [ATL] How compile ATL files in headless mode [message #106580 is a reply to message #106567] Mon, 15 June 2009 09:05 Go to previous messageGo to next message
Miguel Llàcer San Fernando is currently offline Miguel Llàcer San FernandoFriend
Messages: 63
Registered: July 2009
Member
and is there any Ant task which could provide this functionality?
Re: [ATL] How compile ATL files in headless mode [message #106593 is a reply to message #106580] Mon, 15 June 2009 09:46 Go to previous message
William Piers is currently offline William PiersFriend
Messages: 301
Registered: July 2009
Senior Member
At this time there isn't, but it could be a great contribution.
Ant tasks are quite easy to implement, here you can find a doc about it:
http://ant.apache.org/manual/develop.html

Here is the ATL ant tasks plugin:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org .eclipse.m2m.atl/plugins/org.eclipse.m2m.atl.core.ant/?root= Modeling_Project

....and the documentation about it:
http://wiki.eclipse.org/ATL/User_Guide#ATL_ant_tasks

Best regards,

William

Miguel Llácer San Fernando a écrit :
> and is there any Ant task which could provide this functionality?
>
Previous Topic:[ATL] Conditional Assignment - possible?
Next Topic:Difficulty with an ATL expression
Goto Forum:
  


Current Time: Fri Apr 26 23:43:13 GMT 2024

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

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

Back to the top