JAL-3743 Fixed NullPointerExceptions happening with linkCheck task when gradle >...
[jalview.git] / 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)