|Generate Files outside of the xtext project, relative to the projects location [message #1765662]
||Tue, 13 June 2017 08:25
| Lukas Schaus
Registered: October 2016
I develop a DSL using XText 2.11. And I want that my generator saves the generated files in a path relative to my project location, but outside of the project folder.
I found that I can override the OutputConfigurationProvider in order to set a default output folder. I managed to specify an arbitrary folder name within the project folder or a subfolder of it. But I failed to set the folder outside of the project.
My next try was to set the relative path inside the generator but the FileSystemAccess2's generate operation permitts the desired functionality aswell.
The last approach was to use standard java file operations but that lead to the creation of a folder in the windows start menu.
I would be very glad if you could suggest me a possible approach for the intended behavior.
Powered by FUDForum
. Page generated in 0.01768 seconds