Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand] generating code to socket stream not to file in secondary storage
[Xpand] generating code to socket stream not to file in secondary storage [message #1221563] Tue, 17 December 2013 19:53 Go to next message
Eclipse UserFriend
Hi all ,

I am wondering if it is possible to generate code with xpand to socketstream not to file on secondry storage?
I want to the generated text to be stored in java string variable and then I will use it as parameter to my socket stream ?


Thank you in advance.
Re: [Xpand] generating code to socket stream not to file in secondary storage [message #1221655 is a reply to message #1221563] Wed, 18 December 2013 02:09 Go to previous message
Eclipse UserFriend
A bit out of scope, but basically this will be possible with some effort. The actual place where the file is written is FileHandleImpl#writeAndClose. You need to exchange FileHandleImpl by your own implementation of FileHandle. The creation of FileHandles is done by Outlet#createFileHandle, which would mean you need your own implementation of Outlet, usually by subclassing and overriding this method. Outlets are created by the Generator component, so this needs subclassing also.

Regards,
~Karsten
Previous Topic:Jet2 Build bad Directive taglib
Next Topic:[Acceleo] Heap Space Problems during Generation
Goto Forum:
  


Current Time: Mon Jul 14 02:29:32 EDT 2025

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

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

Back to the top