Whenever I try to run a Java application with the setting "Run the default application", the "Make" process starts, regardless of whether there are any changes that require compilation or not. Without changes, the process still takes several seconds on my computer.
I tried to solve this problem by removing the position Makefrom the launch configuration and checking Make project automaticallyin the settings. Unfortunately, this solution gave rise to another problem: sometimes, when I make some changes and launch the application, the automatic assembly is not yet completed and the old version of the program is launched instead.
In other words, I would like to emulate the behavior of the Eclipse launch command:
- If there are no changes, immediately launch the application (part of a second on my computer).
- If there are any changes, compile them and run the application.
How can I do this in IntelliJ?
source
share