def install4jConf
def macosJavaVMDir
def windowsJavaVMDir
+def install4jDir = "$jalviewDir/$install4jResourceDir"
+def install4jConfFile = "jalview-installers-java"+JAVA_VERSION+".install4j"
+install4jConf = "$install4jDir/$install4jConfFile"
+
task copyInstall4jTemplate(type: Copy) {
- def install4jDir = "$jalviewDir/$install4jResourceDir"
- def install4jConfFile = "jalview-installers-java"+JAVA_VERSION+".install4j"
macosJavaVMDir = System.env.HOME+"/buildtools/jre/openjdk-java_vm/macos-jre"+JAVA_VERSION+"/java_vm"
windowsJavaVMDir = System.env.HOME+"/buildtools/jre/openjdk-java_vm/windows-jre"+JAVA_VERSION+"/java_vm"
from (install4jDir) {
filter(ReplaceTokens, beginToken: '$$', endToken: '$$', tokens: ['VERSION': JALVIEW_VERSION, 'MACOS_JAVA_VM_DIR': macosJavaVMDir, 'WINDOWS_JAVA_VM_DIR': windowsJavaVMDir])
}
into install4jDir
- install4jConf = "$install4jDir/$install4jConfFile"
inputs.files("$install4jDir/$install4jTemplate")
outputs.files(install4jConf)
}