Generating code to custom location

Currently, code in MPS is generated to one of the *_gen directories. Is it possible to change where the code gets generated to in a model? I.e. can I change the source_gen location for the stuff that is generated out of a model? This would help improving file-based interoperability with other tools, because it would save a copy action from source_gen to another location that is needed by other tooling everytime you build the model.

Thanks for any hints/ideas!

3 comments

Hey Eugen!

Look there. As stated by Vaclav Pech it's unfortunately not possible.

https://mps-support.jetbrains.com/hc/en-us/community/posts/206615045-custom-filepath-for-XML-file

Regards

msch95

0

Hi msch95, thanks for pointing that one out. I completely missed that post.

0

Have a look at this project (https://github.com/CampagneLaboratory/CustomWebAspectExample) and in the second volume of my book (custom web facet description). The org.campagnelab.staging language helps write generated code to specific locations. 

0

Please sign in to leave a comment.