From cc9e776268c8713dc69ee6efc09a5f9f4d4ae9cd Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Mon, 28 Oct 2019 14:16:00 +0000 Subject: [PATCH] JAL-3210 Added eclipse instance info in j2s-transpile.out log. --- build.gradle | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index d259e13..bf27433 100644 --- a/build.gradle +++ b/build.gradle @@ -1306,10 +1306,9 @@ def eclipseVersion def eclipseDebug = false def eclipseVersionSuffix = "" task jalviewjsEclipsePaths { - def eclipseRoot def eclipseProduct - eclipseRoot = jalviewjs_eclipse_root + def eclipseRoot = jalviewjs_eclipse_root if (eclipseRoot.startsWith("~")) { eclipseRoot = System.getProperty("user.home") + eclipseRoot.substring(1) } @@ -1514,13 +1513,21 @@ task jalviewjsTranspile(type: Exec) { def logOutFileName = "${jalviewDirAbsolutePath}/${jalviewjsBuildDir}/${jalviewjs_j2s_stdout}" def logOutFile = file(logOutFileName) logOutFile.createNewFile() - def logOutFOS = new FileOutputStream(logOutFile, false) + logOutFile.text = """ROOT: ${jalviewjs_eclipse_root} +BINARY: ${eclipseBinary} +VERSION: ${eclipseVersion} +WORKSPACE: ${eclipseWorkspace} +DEBUG: ${eclipseDebug} +---- +""" + def logOutFOS = new FileOutputStream(logOutFile, true) // true == append //def logErrFileName = "${jalviewjsBuildDir}/${jalviewjs_j2s_stderr}" //def logErrFile = file(logFileName) //logErrFile.createNewFile() //def logErrFOS = new FileErrputStream(logErrFile, false) // combine stdout and stderr def logErrFOS = logOutFOS + if (jalviewjs_j2s_to_console.equals("true")) { standardOutput = new org.apache.tools.ant.util.TeeOutputStream( new org.apache.tools.ant.util.TeeOutputStream( -- 1.7.10.2