[Editor] Change Application Runner behavior to run build pipeline only if the output jar does not exist
This commit is contained in:
@@ -38,9 +38,14 @@ class DefaultApplicationRunner : ApplicationRunner {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isRunning = true
|
isRunning = true
|
||||||
|
|
||||||
|
if (project.buildOutputJarFile.exists() && project.buildOutputJarFile.isFile) {
|
||||||
|
runApplication(project)
|
||||||
|
} else {
|
||||||
pipelineService.build().onSucceeded = EventHandler { runApplication(project) }
|
pipelineService.build().onSucceeded = EventHandler { runApplication(project) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun runApplication(project: Project) {
|
private fun runApplication(project: Project) {
|
||||||
eventbus.fire(ClearProcessLogsEvent)
|
eventbus.fire(ClearProcessLogsEvent)
|
||||||
|
|||||||
Reference in New Issue
Block a user