Generate non text files [message #1698157] |
Thu, 11 June 2015 17:19 |
kon f Messages: 152 Registered: March 2012 |
Senior Member |
|
|
Hey,
I created a dsl that needs to generate a doc file as result. All examples that I found are text based like the following:
override void doGenerate(Resource resource, IFileSystemAccess fsa) {
fsa.generateFile('greetings.txt', 'People to greet: ' +
resource.allContents
.filter(typeof(Greeting))
.map[name]
.join(', '))
}
Can I use the IFileSystemAccess to write the doc files to the file system? So I could use the in-memory IFileSystemAccess for unit testing as shown in this by blog post Unittesting Xtend Generators.
Thank you!
Kon
[Updated on: Thu, 11 June 2015 19:18] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02252 seconds