Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Generate Files outside of the xtext project, relative to the projects location
Generate Files outside of the xtext project, relative to the projects location [message #1765662] Tue, 13 June 2017 04:25 Go to next message
Eclipse UserFriend
Hello,

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.

Thank you

Lukas
Re: Generate Files outside of the xtext project, relative to the projects location [message #1850522 is a reply to message #1765662] Mon, 07 March 2022 09:38 Go to previous messageGo to next message
Eclipse UserFriend
[Pushing this post up because I'm currently concerned with the same question]
Re: Generate Files outside of the xtext project, relative to the projects location [message #1850528 is a reply to message #1850522] Mon, 07 March 2022 10:30 Go to previous message
Eclipse UserFriend
i dont know of on ootb solution, but you may check the code of
EclipseResourceFileSystemAccess2 / BuilderParticipant / EclipseOutputConfigurationProvider and debug it and or customize it to your needs
Previous Topic:XMI model to Defined Xtext Model
Next Topic:Data annotation overrides toString from parent class
Goto Forum:
  


Current Time: Tue Apr 22 22:44:59 EDT 2025

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

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

Back to the top