Fix classpath for collectScreenshots
This commit is contained in:
@@ -211,7 +211,8 @@ task collectScreenshots {
|
|||||||
def mainMethod = klass.getMethod("main")
|
def mainMethod = klass.getMethod("main")
|
||||||
println "Collecting screenshot for ${klassName}"
|
println "Collecting screenshot for ${klassName}"
|
||||||
javaexec {
|
javaexec {
|
||||||
classpath set.runtimeClasspath
|
classpath += set.runtimeClasspath
|
||||||
|
classpath += set.compileClasspath
|
||||||
def className = y.name.replace(".class", "")
|
def className = y.name.replace(".class", "")
|
||||||
main = className
|
main = className
|
||||||
jvmArgs += "-DtakeScreenshot=true"
|
jvmArgs += "-DtakeScreenshot=true"
|
||||||
|
|||||||
Reference in New Issue
Block a user