Skip over failing collectScreenshots tasks
This commit is contained in:
@@ -64,14 +64,16 @@ abstract class CollectScreenshotsTask @Inject constructor() : DefaultTask() {
|
|||||||
this.classpath += runtimeDependencies.get()
|
this.classpath += runtimeDependencies.get()
|
||||||
this.mainClass.set(klassName)
|
this.mainClass.set(klassName)
|
||||||
this.workingDir(project.rootProject.projectDir)
|
this.workingDir(project.rootProject.projectDir)
|
||||||
jvmArgs("-DtakeScreenshot=true", "-DscreenshotPath=${outputDir.get().asFile}/$klassName.png")
|
jvmArgs("-DtakeScreenshot=true", "-DscreenshotPath=${outputDir.get().asFile}/$klassName.png -Dorg.openrndr.exceptions=JVM")
|
||||||
}
|
}
|
||||||
} catch (e: NoSuchMethodException) {
|
} catch (e: NoSuchMethodException) {
|
||||||
// silently ignore
|
// silently ignore
|
||||||
|
} catch (e: Throwable) {
|
||||||
|
e.printStackTrace()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// this is only executed if there are chances in the inputDir
|
// this is only executed if there are changes in the inputDir
|
||||||
val runDemos = outputDir.get().asFile.listFiles { file: File ->
|
val runDemos = outputDir.get().asFile.listFiles { file: File ->
|
||||||
file.extension == "png"
|
file.extension == "png"
|
||||||
}.map { it.nameWithoutExtension }.sorted()
|
}.map { it.nameWithoutExtension }.sorted()
|
||||||
|
|||||||
Reference in New Issue
Block a user