JAL-3743 Fixed NullPointerExceptions happening with linkCheck task when gradle >...
authorBen Soares <b.soares@dundee.ac.uk>
Mon, 26 Apr 2021 16:56:19 +0000 (17:56 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Mon, 26 Apr 2021 17:07:52 +0000 (18:07 +0100)
build.gradle

index cbd65f2..00e3e40 100644 (file)
@@ -1141,13 +1141,12 @@ task linkCheck(type: JavaExec) {
   args = [ "${classesDir}/${help_dir}", "-nointernet" ]
 
   def outFOS = new FileOutputStream(helpLinksCheckerOutFile, false) // false == don't append
-  def errFOS = outFOS
   standardOutput = new org.apache.tools.ant.util.TeeOutputStream(
     outFOS,
-    standardOutput)
+    System.out)
   errorOutput = new org.apache.tools.ant.util.TeeOutputStream(
     outFOS,
-    errorOutput)
+    System.err)
 
   inputs.dir("${classesDir}/${help_dir}")
   outputs.file(helpLinksCheckerOutFile)