copy {
from zipTree(file_zip)
into "${jalviewDir}/${jalviewjsTransferSiteSwingJsDir}"
- exclude "**.html"
- exclude "**.htm"
}
}
copy {
from zipTree(file_zip)
into "${jalviewDir}/${jalviewjsTransferSiteLibDir}"
- exclude "**.html"
- exclude "**.htm"
// The following replace() is needed due to a mismatch in Jmol calls to
// colorPtToFFRGB$javajs_util_T3d when only colorPtToFFRGB$javajs_util_T3 is defined
}
-task jalviewjsTranserSiteMergeDirs (type: Sync) {
+task jalviewjsTranserSiteMergeLibDirs (type: Sync) {
dependsOn jalviewjsTransferUnzipAllLibs
dependsOn jalviewjsTransferUnzipSwingJs
dependsOn jalviewjsTranspile
def inputFiles = fileTree(dir: "${jalviewDir}/${jalviewjsTransferSiteLibDir}")
// merge swingjs lib last
inputFiles += fileTree(dir: "${jalviewDir}/${jalviewjsTransferSiteSwingJsDir}")
+
+ def outputDir = "${jalviewDir}/${jalviewjsTransferSiteMergeDir}"
+
+ from inputFiles
+ into outputDir
+ def outputFiles = []
+ rename { filename ->
+ outputFiles += "${outputDir}/${filename}"
+ null
+ }
+
+ exclude "**/*.html"
+ exclude "**/*.htm"
+
+ // should this be exclude really ? No, swingjs dir should be transferred last (and overwrite)
+ duplicatesStrategy "INCLUDE"
+
+ outputs.files outputFiles
+ inputs.files inputFiles
+}
+
+
+task jalviewjsTranserSiteMergeSwingDir (type: Sync) {
+ dependsOn jalviewjsTransferUnzipAllLibs
+ dependsOn jalviewjsTransferUnzipSwingJs
+ dependsOn jalviewjsTranspile
+
// merge jalview files very last
- inputFiles += fileTree(dir: "${jalviewDir}/${jalviewjsTransferSiteJsDir}")
+ def inputFiles = fileTree(dir: "${jalviewDir}/${jalviewjsTransferSiteJsDir}")
def outputDir = "${jalviewDir}/${jalviewjsTransferSiteMergeDir}"
include "**"
}
- // should this be exclude really ? No, swingjs dir should be transferred last (and overwrite)
+ // should this be exclude really ? No, jalview dir should be transferred last (and overwrite)
duplicatesStrategy "INCLUDE"
outputs.files outputFiles
}
+task jalviewjsTranserSiteMergeDirs {
+ dependsOn jalviewjsTranserSiteMergeLibDirs
+ dependsOn jalviewjsTranserSiteMergeSwingDir
+}
+
+
def jalviewjsCallCore(String name, FileCollection list, String prefixFile, String suffixFile, String jsfile, String zjsfile, File logOutFile, Boolean logOutConsole) {
def stdout = new ByteArrayOutputStream()