Gradle: runPaperServer should read Main-Class from manifest.

This commit is contained in:
Kenneth Endfinger committed 2022-01-15 16:15:11 -05:00
1 parent ef13c2371c
commit 93d1888537
2 files changed
+12 -3

No files matched your search

@@ -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()
}
}