JAL-3599 More stderr/stdout output to logs when anything
authorBen Soares <b.soares@dundee.ac.uk>
Fri, 9 Jun 2023 09:48:43 +0000 (10:48 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Fri, 9 Jun 2023 09:48:43 +0000 (10:48 +0100)
build.gradle

index 7fa55c0..6517f43 100644 (file)
@@ -4265,6 +4265,11 @@ task jalviewjsLaunchTest(type: Exec) {
   errorOutput = new ByteArrayOutputStream()
   
   doLast {
+    println("Chrome STDOUT: ")
+    println(standardOutput.toString())
+    println("Chrome STDERR: ")
+    println(errorOutput.toString())
+
     def found = false
     def stderr = errorOutput.toString()
     stderr.eachLine { line ->
@@ -4275,10 +4280,6 @@ task jalviewjsLaunchTest(type: Exec) {
       }
     }
     if (!found) {
-      println("Chrome STDOUT: ")
-      println(standardOutput.toString())
-      println("Chrome STDERR: ")
-      println(errorOutput.toString())
       
       throw new GradleException("Could not find evidence of Desktop launch in JalviewJS.")
     }