mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2026-11-04 11:12:20 +00:00
Gradle: runPaperServer should read Main-Class from manifest.
This commit is contained in:
2 files changed
+12
-3
No files matched your search
+3
-2
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user