X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=build.gradle;h=1f16133781ea77a4959c88cdd8cd07f01831ebb4;hb=514080e0bb05fd37fa7ca6da00d7e481c9c29b72;hp=81c27510380951cb5e4aa6160077eb7f53a89953;hpb=42685807a6a6298af4715267245460bc5f774f84;p=jalview.git diff --git a/build.gradle b/build.gradle index 81c2751..1f16133 100644 --- a/build.gradle +++ b/build.gradle @@ -595,7 +595,7 @@ task convertBuildingMD(type: Exec) { } doFirst { - if (false && pandoc != null && file(pandoc).exists()) { + 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") @@ -724,7 +724,7 @@ task compileLinkCheck(type: JavaCompile) { outputs.file("$jalviewDir/$utilsDir/BufferedLineReader.class") } -def helplinkscheckeroutputfile = file("$jalviewDir/$utilsDir/HelpLinksChecker.out") +def helplinkscheckertouchfile = file("$jalviewDir/$utilsDir/HelpLinksChecker.touch") task linkCheck(type: JavaExec) { dependsOn prepare, compileLinkCheck classpath = files("$jalviewDir/$utilsDir") @@ -733,12 +733,12 @@ task linkCheck(type: JavaExec) { def help = "$classes/$helpDir" args = [ "$classes/$helpDir", "-nointernet" ] - doFirst { - helplinkscheckeroutputfile.createNewFile() - standardOutput new FileOutputStream(helplinkscheckeroutputfile, false) + doLast { + helplinkscheckertouchfile.createNewFile() } - outputs.file(helplinkscheckeroutputfile) + inputs.dir("$classes/$helpDir") + outputs.file(helplinkscheckertouchfile) } task cleanPackageDir(type: Delete) {