JAL-3248 quick fix for build.gradle when pandoc not available
authorBen Soares <bsoares@dundee.ac.uk>
Mon, 10 Jun 2019 14:15:29 +0000 (15:15 +0100)
committerBen Soares <bsoares@dundee.ac.uk>
Mon, 10 Jun 2019 14:15:29 +0000 (15:15 +0100)
build.gradle

index 3e5901b..9fbcd38 100644 (file)
@@ -466,13 +466,17 @@ task convertBuildingMD(type: Exec) {
   def css = "$jalviewDir/$docDir/github.css"
 
   def pandoc = pandoc_exec
+  def hostname = "hostname".execute().text.trim()
   if (! file(pandoc).exists() && hostname.equals("jv-bamboo")) {
     pandoc = System.getProperty("user.home")+"/buildtools/pandoc/bin/pandoc"
   }
 
   if (file(pandoc).exists()) {
     commandLine pandoc, '-s', '-o', buildingHTML, '--metadata', 'pagetitle="Building Jalview from Source"', '--toc', '-H', css, buildingMD
+  } else {
+    commandLine "true"
   }
+
   ignoreExitValue true
 
   inputs.file(buildingMD)