From 03f451b47d675b070dd429c41c3f43c5ffaa05d6 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Wed, 19 Feb 2020 09:06:16 +0000 Subject: [PATCH] JAL-3449 helper task to perform getdown digest on any dir --- build.gradle | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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" -- 1.7.10.2