Hey guys, we want to move generated files to subfolders after generation (depending on virtual package). For TextGenText or XML file concept it works with @CopyOutcome annotation. But for a ClassConce...

This is an auto-generated question from the MPS Slack community: Hey guys, we want to move generated files to subfolders after generation (depending on virtual package). For TextGenText or XML file concept it works with @CopyOutcome annotation. But for a ClassConcept root template it doesn't seem to work. Is there another approach or did I forget to configure something else. Thank you very much.
0
4 comments
I know there is a `package` property in inspector for any ClassConcept instance. It defines package for corresponding generated class. ClassConcept with generator template also has it's property and you can attach property macro to it. Slack user:U9XMHJEKG> is it a fine way to use define generated subfolder in a root template?
0
Hi Slack user:U6M94JMGX>, thank you very much, that works! We should pay more attention to the inspector after all! The only challenge is the property macro in the inspector, but I help myself with the reflective editor.
0
Hmm. if you needed to use reflective editor then it doesn't work that good. I was able to add property macro without reflective editor, I selected the property, opened intentions menu (Alt+Enter) and selected `Add property macro` or something like this.
0
This is auto-generated question from the MPS Community Slack Workspace. If you want to comment on the question, do it from the Slack workspace
0

Post is closed for comments.