Fix launching custom Kt files from command line

The `application` property was already used.
Reusing it breaks things.
Use `openrndr.application` instead.
This commit is contained in:
Abe Pazos
2023-02-27 16:06:57 +01:00
committed by Edwin Jakobs
parent 01d45029e6
commit 0e76bcd431
2 changed files with 11 additions and 7 deletions

View File

@@ -141,8 +141,8 @@ tasks.withType<KotlinCompile> {
project.setProperty("mainClassName", applicationMainClass)
application {
if (hasProperty("application")) {
mainClass.set("${property("application")}Kt")
if (hasProperty("openrndr.application")) {
mainClass.set("${property("openrndr.application")}")
}
}