From: Ben Soares Date: Thu, 27 Jun 2019 22:29:54 +0000 (+0100) Subject: JAL-3322 fixed convertBuildingMD task skipping in Windows X-Git-Tag: Release_2_11_0~2^2~34^2 X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=commitdiff_plain;h=42685807a6a6298af4715267245460bc5f774f84 JAL-3322 fixed convertBuildingMD task skipping in Windows --- diff --git a/build.gradle b/build.gradle index 3aa4c45..81c2751 100644 --- a/build.gradle +++ b/build.gradle @@ -594,10 +594,13 @@ task convertBuildingMD(type: Exec) { pandoc = System.getProperty("user.home")+"/buildtools/pandoc/bin/pandoc" } - if (pandoc != null && file(pandoc).exists()) { - commandLine pandoc, '-s', '-o', buildingHTML, '--metadata', 'pagetitle="Building Jalview from Source"', '--toc', '-H', css, buildingMD - } else { - commandLine "true" + doFirst { + if (false && pandoc != null && file(pandoc).exists()) { + commandLine pandoc, '-s', '-o', buildingHTML, '--metadata', 'pagetitle="Building Jalview from Source"', '--toc', '-H', css, buildingMD + } else { + println("Cannot find pandoc. Skipping convert building.md to HTML") + throw new StopExecutionException() + } } ignoreExitValue true