From: Ben Soares Date: Mon, 21 Oct 2019 23:36:55 +0000 (+0100) Subject: JAL-3210 added absolute path for transpile log X-Git-Tag: Release_2_11_4_0~45^2~18^2~108 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e9f60866d6c5c137cb57ba2a9317c5ab0495594f;p=jalview.git JAL-3210 added absolute path for transpile log --- diff --git a/build.gradle b/build.gradle index 5d0674b..fc47cb6 100644 --- a/build.gradle +++ b/build.gradle @@ -1496,7 +1496,7 @@ task jalviewjsTranspile(type: Exec) { stdout = new ByteArrayOutputStream() stderr = new ByteArrayOutputStream() - def logOutFileName = "${jalviewjsBuildDir}/${jalviewjs_j2s_stdout}" + def logOutFileName = "${jalviewDirAbsolutePath}/${jalviewjsBuildDir}/${jalviewjs_j2s_stdout}" def logOutFile = file(logOutFileName) logOutFile.createNewFile() def logOutFOS = new FileOutputStream(logOutFile, false) @@ -1529,7 +1529,7 @@ task jalviewjsTranspile(type: Exec) { doLast { if (stdout.toString().contains("Error processing ")) { // j2s did not complete transpile - throw new GradleException("Error during transpilation:\n${stderr}\nSee eclipse transpile log files '${jalviewjsBuildDir}/${jalviewjs_j2s_stdout}' and '${jalviewjsBuildDir}/${jalviewjs_j2s_stderr}'\n") + throw new GradleException("Error during transpilation:\n${stderr}\nSee eclipse transpile log file '${jalviewjsBuildDir}/${jalviewjs_j2s_stdout}'") } }