X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=build.gradle;fp=build.gradle;h=6137539a7192b168dd893c2a7543ff741f89233b;hb=8881839853584ea4181e4f1600d5cb7b4da89bec;hp=1475cdb0baa25707e0d53cee4d81276346fc976d;hpb=a7f3bd6355207ff46083e656badb6d9b073384f7;p=jalview.git diff --git a/build.gradle b/build.gradle index 1475cdb..6137539 100644 --- a/build.gradle +++ b/build.gradle @@ -3427,6 +3427,19 @@ task jalviewjsTransferUnzipLib { from zipTree(file_zip) into "${jalviewDir}/${jalviewjsTransferSiteLibDir}" + // rename files in jsmol/j2s/... to swingjs/j2s/... + if (file_zip.getName().startsWith("Jmol-j2s-site")) { + eachFile { fcd -> + // jsmol/... -> swingjs/... + def relPathSegments = fcd.relativePath.getSegments() + if (relPathSegments[0] == "jsmol") { + def newRelPathSegments = relPathSegments + newRelPathSegments[0] = "swingjs" + fcd.relativePath = new RelativePath(true, newRelPathSegments) + } + } + } + // 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 // in the SwingJS.zip (github or the one distributed with JSmol)