Compile project source - Program Runner

My idea plugin, am adding run/debug configurations.

 
<extensions defaultExtensionNs="com.intellij">
    <configurationType implementation="<my-impl>" />
    <programRunner id="Run" implementation=<my-impl>" order="first"/>
    <programRunner id="Debug" implementation="<my-impl>" order="last" />
</extensions>
  

Once my source code is changed, for subsequent run using my run configuration, changes should apply.

How can I achieve this.  

2 comments
Comment actions Permalink

What do you mean "changes should apply"? What kind of changes?

If your configuration runs Java code, then you need to make sure that it implements the RunProfileWithCompileBeforeLaunchOption interface (for example, by inheriting from the ModuleBasedConfiguration base class). Then the "Make before launch" option will be supported for your run configuration, and the Java code will be automatically compiled before the launch.

0
Comment actions Permalink

Thanks for your answer.
"change sould apply" I meant what the logical changes I do in the program, that we see from outside when program runs.

0

Please sign in to leave a comment.