Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Generate emtl file without acceleo nature?
[Acceleo] Generate emtl file without acceleo nature? [message #494221] Thu, 29 October 2009 15:57 Go to next message
Marcus  is currently offline Marcus Friend
Messages: 1
Registered: July 2009
Junior Member
Hi,

I like to invoke the AcceleoService on template code without using the acceleoBuilder in the .project file. In other words, I like to manually invoke the acceleo compiler on the template code via API calls.

How can I generate the emtl file based on the template code (typically avaiable in a mtl file)?

Many thanks in advance.
Re: [Acceleo] Generate emtl file without acceleo nature? [message #494307 is a reply to message #494221] Fri, 30 October 2009 08:02 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060807000903090406050806
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hi Markus,

You can take a look at the unit tests code, as we call the parser from
code to avoid cluttering these tests with emtl files. Specifically,
org.eclipse.acceleo.engine.tests.unit.AbstractAcceleoTest#pa rse(String)
is in charge of the parsing and emtl file creation.

Laurent Goubet
Obeo

Marcus a écrit :
> Hi,
>
> I like to invoke the AcceleoService on template code without using the
> acceleoBuilder in the .project file. In other words, I like to manually
> invoke the acceleo compiler on the template code via API calls.
>
> How can I generate the emtl file based on the template code (typically
> avaiable in a mtl file)?
>
> Many thanks in advance.


--------------060807000903090406050806
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyLyI+T2JlbzwvYT4NCmVtYWls O2ludGVybmV0
OmxhdXJlbnQuZ291YmV0QG9iZW8uZnINCnVybDpodHRwOi8vd3d3Lm9iZW8u ZnINCnZlcnNp
b246Mi4xDQplbmQ6dmNhcmQNCg0K
--------------060807000903090406050806--
Previous Topic:Use case specification and transformation
Next Topic:How JET compares with XSLT?
Goto Forum:
  


Current Time: Sun Oct 06 23:07:16 GMT 2024

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

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

Back to the top