From e9f60866d6c5c137cb57ba2a9317c5ab0495594f Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Tue, 22 Oct 2019 00:36:55 +0100 Subject: [PATCH] JAL-3210 added absolute path for transpile log --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}'") } } -- 1.7.10.2