From 42685807a6a6298af4715267245460bc5f774f84 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Thu, 27 Jun 2019 23:29:54 +0100 Subject: [PATCH] JAL-3322 fixed convertBuildingMD task skipping in Windows --- build.gradle | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 -- 1.7.10.2