Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Re: Code generation in a Standalone Java Application
Re: Code generation in a Standalone Java Application [message #491133] Tue, 13 October 2009 12:36 Go to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Asha,

I'm forwarding this one the m2t newsgroup.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Asha R schrieb:
> Hi,
>
> Not sure whether this is the right newsgroup or not to post this question.
> Is there something similar to JET that can be used programmatically in
> Java?
>
> The problem with JET is we can create a project and set some destination
> folder where templates get generated based on an action.
>
> But we need to implement something almost similar to what a JET does.
> So, is there any API that can be used to generate the code?
>
> Thank you in advance.
>
> Asha.
Re: Code generation in a Standalone Java Application [message #491138 is a reply to message #491133] Tue, 13 October 2009 12:47 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010105010804040208000605
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hi Asha,

I don't know if you've got a specific m2t engine in view, and I don't
know if XPand allows for standalone generation of code. I do know
however that Acceleo supports both "runtime" generation within Eclipse
and "standalone" generation outside of Eclipse (with a single 'required'
dependency to Eclipse jars for "org.eclipse.core.runtime").

Laurent Goubet
Obeo

Sebastian Zarnekow a écrit :
> Hi Asha,
>
> I'm forwarding this one the m2t newsgroup.
>
> Regards,
> Sebastian


--------------010105010804040208000605
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
--------------010105010804040208000605--
Re: Code generation in a Standalone Java Application [message #491161 is a reply to message #491138] Tue, 13 October 2009 13:27 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
Yes, Xpand as well can be used and executed in any Java process.
No Eclipse dependency and no need to compile templates before executing
them, since Xpand templates are interpreted.

Cheers,
Sven

laurent Goubet schrieb:
> Hi Asha,
>
> I don't know if you've got a specific m2t engine in view, and I don't
> know if XPand allows for standalone generation of code. I do know
> however that Acceleo supports both "runtime" generation within Eclipse
> and "standalone" generation outside of Eclipse (with a single 'required'
> dependency to Eclipse jars for "org.eclipse.core.runtime").
>
> Laurent Goubet
> Obeo
>
> Sebastian Zarnekow a écrit :
>> Hi Asha,
>>
>> I'm forwarding this one the m2t newsgroup.
>>
>> Regards,
>> Sebastian
>


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Previous Topic:[JET] OCL/Profiles
Next Topic:Transforming emx files (RSM)
Goto Forum:
  


Current Time: Fri Apr 26 09:06:50 GMT 2024

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

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

Back to the top