[Editor] Change Application Runner behavior to run build pipeline only if the output jar does not exist

This commit is contained in:
2021-02-26 20:00:12 +01:00
parent 290090c4d3
commit 339d7f0cb2

View File

@@ -38,9 +38,14 @@ class DefaultApplicationRunner : ApplicationRunner {
}
isRunning = true
if (project.buildOutputJarFile.exists() && project.buildOutputJarFile.isFile) {
runApplication(project)
} else {
pipelineService.build().onSucceeded = EventHandler { runApplication(project) }
}
}
}
private fun runApplication(project: Project) {
eventbus.fire(ClearProcessLogsEvent)