From 74dcd178754a161016c505a8aa5bbbe767790d8d Mon Sep 17 00:00:00 2001 From: fros4943 Date: Fri, 3 Oct 2008 15:43:44 +0000 Subject: [PATCH] print compilation error stream if not visualized --- .../sics/cooja/contikimote/ContikiMoteTypeDialog.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteTypeDialog.java b/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteTypeDialog.java index 846a46b48..6e02016af 100644 --- a/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteTypeDialog.java +++ b/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteTypeDialog.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ContikiMoteTypeDialog.java,v 1.45 2008/10/03 13:39:49 fros4943 Exp $ + * $Id: ContikiMoteTypeDialog.java,v 1.46 2008/10/03 15:43:44 fros4943 Exp $ */ package se.sics.cooja.contikimote; @@ -1607,7 +1607,7 @@ public class ContikiMoteTypeDialog extends JDialog { String readLine; try { while ((readLine = input.readLine()) != null) { - if (outputStream != null && readLine != null) { + if (outputStream != null) { outputStream.println(readLine); } } @@ -1622,8 +1622,12 @@ public class ContikiMoteTypeDialog extends JDialog { String readLine; try { while ((readLine = err.readLine()) != null) { - if (errorStream != null && readLine != null) { + if (errorStream != null) { errorStream.println(readLine); + + if (!GUI.isVisualized()) { + logger.warn("COMPILATION OUTPUT: " + readLine); + } } } } catch (IOException e) {