From: Ben Soares Date: Wed, 19 Feb 2020 09:06:16 +0000 (+0000) Subject: JAL-3449 helper task to perform getdown digest on any dir X-Git-Tag: Develop-2_11_2_0-d20201215~80^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=03f451b47d675b070dd429c41c3f43c5ffaa05d6;p=jalview.git JAL-3449 helper task to perform getdown digest on any dir --- diff --git a/build.gradle b/build.gradle index bd31eaa..27e040c 100644 --- a/build.gradle +++ b/build.gradle @@ -1156,6 +1156,22 @@ task getdownWebsite() { } +// a helper task to allow getdown digest of any dir: `gradle getdownDigestDir -PDIGESTDIR=/path/to/my/random/getdown/dir +task getdownDigestDir(type: JavaExec) { + def digestDirPropertyName = "DIGESTDIR" + description = "Digest a local dir (-P${digestDirPropertyName}=...) for getdown" + doFirst { + classpath = files(getdownLauncher) + def digestDir = findProperty(digestDirPropertyName) + if (digestDir == null) { + throw new GradleException("Must provide a DIGESTDIR value to produce an alternative getdown digest") + } + args digestDir + } + main = "com.threerings.getdown.tools.Digester" +} + + task getdownDigest(type: JavaExec) { group = "distribution" description = "Digest the getdown website folder"