From 59e2b8ac344dbc53a27d54b4792bcf9364b35bc5 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Fri, 8 Nov 2019 10:14:16 +0000 Subject: [PATCH] JAL-3210 jmol, stevesoft and publish template tasks in progress --- build.gradle | 46 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index b03c883..3e2a029 100644 --- a/build.gradle +++ b/build.gradle @@ -1927,11 +1927,43 @@ def jalviewjsCallCore(FileCollection list, String prefixFile, String suffixFile, logOutFile.append(msg+"\n") } +task jalviewjsBuildJMolCore { + dependsOn jalviewjsTranspile + dependsOn jalviewjsTransferUnzipLib + dependsOn jalviewjsSitePath + def j2sDir = "${jalviewDir}/${jalviewjsTransferSiteJsDir}/${jalviewjs_j2s_subdir}" + def jsDir = "${jalviewDir}/${jalviewjsTransferSiteLibDir}/${jalviewjs_js_subdir}" + def outputDir = "${jalviewDir}/${jalviewjsTransferSiteCoreDir}/${jalviewjs_j2s_subdir}/core" + def prefixFile = "${jsDir}/core/coretop2.js" + def suffixFile = "${jsDir}/core/corebottom2.js" -task jalviewjsBuildAllCores { + inputs.file prefixFile + inputs.file suffixFile + + +} + +task jalviewjsBuildStevesoftCore { + dependsOn jalviewjsTranspile + dependsOn jalviewjsTransferUnzipLib + dependsOn jalviewjsSitePath + + def j2sDir = "${jalviewDir}/${jalviewjsTransferSiteJsDir}/${jalviewjs_j2s_subdir}" + def jsDir = "${jalviewDir}/${jalviewjsTransferSiteLibDir}/${jalviewjs_js_subdir}" + def outputDir = "${jalviewDir}/${jalviewjsTransferSiteCoreDir}/${jalviewjs_j2s_subdir}/core" + def prefixFile = "${jsDir}/core/coretop2.js" + def suffixFile = "${jsDir}/core/corebottom2.js" + + inputs.file prefixFile + inputs.file suffixFile + + +} + +task jalviewjsBuildClasslistCores { group "JalviewJS" - description "Build the core js lib closures" + description "Build the core js lib closures listed in the classlists dir" dependsOn jalviewjsSitePath dependsOn jalviewjsTransferUnzipLib @@ -1988,3 +2020,13 @@ task jalviewjsBuildAllCores { } } + +task jalviewjsBuildAllCores { + dependsOn jalviewjsBuildJMolCore + dependsOn jalviewjsBuildStevesoftCore + dependsOn jalviewjsBuildClasslistCores +} + +task jalviewjsPublishCoreTemplate { + dependsOn jalviewjsBuildAllCores +} -- 1.7.10.2