[EGL] Append output to existing file [message #1272615] |
Tue, 18 March 2014 06:39  |
Eclipse User |
|
|
|
Hi,
I would like to run the same M2T transformation several times, with different inputs, and append the output to the same file.
Here is an example snippet from an EGL file:
var f = new Native("org.eclipse.epsilon.egl.formatter.language.JavaFormatter");
TemplateFactory.setDefaultFormatter(f);
for(binding in Binding.all) {
var template:Template = TemplateFactory.load("binding.egl");
template.populate("binding",binding);
template.generate("generated/out.txt");
}
The out.txt file will be overwritten each time, is there an option to only append to file?
I considered using to get a string of the generated content and append to it, but could not find a way to write it to a file.
thanks for your help,
Esteban
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03666 seconds