Gradle: runPaperServer should read Main-Class from manifest.

This commit is contained in:
Kenneth Endfinger
2022-01-15 16:15:11 -05:00
parent ef13c2371c
commit 93d1888537
2 changed files with 12 additions and 3 deletions

View File

@ -5,7 +5,8 @@ import org.quartz.JobExecutionContext
class SchedulerRunner : Job {
override fun execute(context: JobExecutionContext) {
val f = context.jobDetail.jobDataMap["function"] as () -> Unit
f()
@Suppress("UNCHECKED_CAST")
val function = context.jobDetail.jobDataMap["function"] as () -> Unit
function()
}
}