Fix jvm argument passing, disable silent failure in collectScreenshots

This commit is contained in:
Edwin Jakobs
2022-06-30 17:48:13 +02:00
parent f4e19e9878
commit f0256aec7a

View File

@@ -64,12 +64,10 @@ abstract class CollectScreenshotsTask @Inject constructor() : DefaultTask() {
this.classpath += runtimeDependencies.get()
this.mainClass.set(klassName)
this.workingDir(project.rootProject.projectDir)
jvmArgs("-DtakeScreenshot=true", "-DscreenshotPath=${outputDir.get().asFile}/$klassName.png -Dorg.openrndr.exceptions=JVM")
jvmArgs("-DtakeScreenshot=true", "-DscreenshotPath=${outputDir.get().asFile}/$klassName.png", "-Dorg.openrndr.exceptions=JVM")
}
} catch (e: NoSuchMethodException) {
// silently ignore
} catch (e: Throwable) {
e.printStackTrace()
}
}
}