X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=build.gradle;h=1f16133781ea77a4959c88cdd8cd07f01831ebb4;hb=f62fb8ea4730ed1d33acbd766543628435a444f3;hp=509984181ace0c24196482e375e2a951b7618f93;hpb=34cceefa5b3eea9a89679f7fbcac4b103f76ceae;p=jalview.git diff --git a/build.gradle b/build.gradle index 5099841..1f16133 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 (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