Fix classpath for collectScreenshots

This commit is contained in:
Edwin Jakobs
2021-05-15 09:27:47 +02:00
parent 86c8421f77
commit 5b2f2a161b

View File

@@ -211,7 +211,8 @@ task collectScreenshots {
def mainMethod = klass.getMethod("main")
println "Collecting screenshot for ${klassName}"
javaexec {
classpath set.runtimeClasspath
classpath += set.runtimeClasspath
classpath += set.compileClasspath
def className = y.name.replace(".class", "")
main = className
jvmArgs += "-DtakeScreenshot=true"