How to set each to-be-generated file's path in generator?

Hi,

[Newbie here] I'm trying to model a multi-module(OSGi) project. In order to do that, I need to put files into specific modules, so my idea was to have a model module, which will have generated siblings modules whose code will be generated by MPS. I've been searching through the docs and the forum, but so far, I haven't found any tips on how to set the path for the file I want to generate.

0
1 comment

Location of a text outcome is derived from model name, name of the file is controlled by respective TextGen aspect.

There's a mechanism MPS uses itself to copy generated files to different locations, but it's not flexible and not documented, therefore it may be easier just to re-layout the generated files the way you like with an external script.

0

Please sign in to leave a comment.