Hey MPS enthuasiasts!
Has someone found a way to programmatically trigger a rebuild all command on a solution/language?
I just want to test (blackbox) the correct output of my generator, which is text. Therefore, I added a DSL script in a solution which contains all combinations.
Now, I just wanted to make a string.compare with the output of the generator and my expected result.
Thankfully, I got a tip resulting in the following code. I added it in a NodeTestCase
new MakeActionImpl(new MakeActionParameters(project).modules(project.getProjectModules())).executeAction();
Unfortunately, it results in the following error:
java.lang.IllegalStateException: should be called outside of command
Thanks for your help!