Class MakeSession


  • public class MakeSession
    extends Object
    • Constructor Detail

      • MakeSession

        public MakeSession​(@NotNull
                           Project mpsProject,
                           @NotNull
                           IMessageHandler messageHandler,
                           boolean cleanMake)
        MakeSession captures global parameters for the make session to run Note, unlike earlier versions, null message handler is no longer supported. Use IMessageHandler.NULL_HANDLER if /dev/null for messages is indeed what you want. Otherwise, use meaningful handler, e.g. DefaultMakeMessageHandler or DefaultMessageHandlerfrom IDE, IMessageHandler.LogHandler or any tailored handler for non-IDE uses.
        Parameters:
        mpsProject - MPS project to run make at
        messageHandler - where to pipe make messages
        cleanMake - true to perform complete rebuild, not make of dirty models only.
    • Method Detail

      • isCleanMake

        public boolean isCleanMake()
      • isSticky

        @Deprecated
        public boolean isSticky()
        Deprecated.
        according to Fedor, obsolete functionality. There are usecases when we can benefit from sticky make session and its explicit shutdown, perhaps shall resurrect.
      • doExecute

        public void doExecute​(Runnable scriptRunnable)