From 4109281e2ff76667c9be3a68b9b4c87a8e0490d3 Mon Sep 17 00:00:00 2001 From: Oscar Gonzalez Fernandez Date: Sat, 22 Jun 2013 11:20:40 +0200 Subject: [PATCH] Remove use of class introduced in JDK 1.7 Otherwise it wouldn't compile in the integration server. The possibility of increasing Java version requirement to JDK 7 should be considered. --- .../src/main/java/org/libreplan/web/print/CutyPrint.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libreplan-webapp/src/main/java/org/libreplan/web/print/CutyPrint.java b/libreplan-webapp/src/main/java/org/libreplan/web/print/CutyPrint.java index 143d8f84d..434090eb1 100644 --- a/libreplan-webapp/src/main/java/org/libreplan/web/print/CutyPrint.java +++ b/libreplan-webapp/src/main/java/org/libreplan/web/print/CutyPrint.java @@ -24,7 +24,6 @@ package org.libreplan.web.print; import java.io.File; import java.io.FileWriter; import java.io.IOException; -import java.lang.ProcessBuilder.Redirect; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.Collections; @@ -388,8 +387,6 @@ public class CutyPrint { ProcessBuilder capture = new ProcessBuilder(CUTYCAPT_COMMAND); params.fillParameters(capture); - capture.redirectOutput(Redirect.INHERIT) - .redirectError(Redirect.INHERIT); String generatedSnapshotServerPath = params .getGeneratedSnapshotServerPath(); @@ -403,8 +400,6 @@ public class CutyPrint { || System.getenv("DISPLAY").equals("")) { ProcessBuilder s = new ProcessBuilder("Xvfb", ":" + params.getXvfbDisplayNumber()); - s.redirectOutput(Redirect.INHERIT).redirectError( - Redirect.INHERIT); serverProcess = s.start(); capture.environment().put("DISPLAY", ":" + params.getXvfbDisplayNumber() + ".0");