|Re: How to generate into a string instead of a file with xpand? [message #487704 is a reply to message #487591]
||Thu, 24 September 2009 04:12
| Sebastian Zarnekow
Registered: July 2009
there are some possibilities to achieve this. First of all, you'll have
to dig into the code and get an idea about the xpand concepts output,
outlet, postprocessor or vetostrategy.
One possiblity is to implement an own output that is file agnostic. The
methods openFile and closeFile don't refer to java.io.File but to the
xpand file statement.
Another way would be to implement a postprocessor and vetostrategy and
configure your outlet. The vetostrategy would answer with false while
the postprocessor can process the buffer of the file handle.
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Michael Scharf schrieb:
> is it possible to use an xpand template and to generate
> directly into a string(buffer/stream) instead of a file?
> Or do I have to generate into a tmp file and then read
> that file into a string?
Powered by FUDForum
. Page generated in 0.01595 seconds