}
*/
- getdownTextString += "code = " + file(getdownLauncher).getName() + "\n"
+ // getdown-launcher.jar should not be in main application class path so the main application can move it when updated. Listed as a resource so it gets updated.
+ //getdownTextString += "class = " + file(getdownLauncher).getName() + "\n"
+ getdownTextString += "resource = " + file(getdownLauncher).getName() + "\n"
getdownTextString += "class = " + mainClass + "\n"
def getdown_txt = file(project.ext.getdownWebsiteDir + "/getdown.txt")
classpath file(jalviewDir + '/' + getdown_lib1)
main = "com.threerings.getdown.tools.Digester"
args project.ext.getdownWebsiteDir
+ inputs.dir(project.ext.getdownWebsiteDir)
outputs.file(project.ext.getdownWebsiteDir + '/' + "digest2.txt")
}
rename (install4jTemplate, install4jConfFile)
filter(ReplaceTokens, beginToken: '', endToken: '', tokens: ['9999999999': JAVA_VERSION])
filter(ReplaceTokens, beginToken: '$$', endToken: '$$', tokens: ['JAVA_VERSION': JAVA_VERSION, 'JAVA_INTEGER_VERSION': JAVA_INTEGER_VERSION, 'VERSION': JALVIEW_VERSION, 'MACOS_JAVA_VM_DIR': macosJavaVMDir, 'MACOS_JAVA_VM_TGZ': macosJavaVMTgz, 'WINDOWS_JAVA_VM_DIR': windowsJavaVMDir, 'WINDOWS_JAVA_VM_TGZ': windowsJavaVMTgz])
+ if (OSX_KEYPASS=="") {
+ filter(ReplaceTokens, beginToken: 'codeSigning macEnabled="', endToken: '"', tokens: ['true':'codeSigning macEnabled="false"'])
+ filter(ReplaceTokens, beginToken: 'runPostProcessor="true" ',endToken: 'Processor', tokens: ['post':'runPostProcessor="false" postProcessor'])
+ }
}
into install4jDir
inputs.files("$install4jDir/$install4jTemplate")
dependsOn copyInstall4jTemplate
projectFile = file(install4jConf)
println("Using projectFile "+projectFile)
- variables = [majorVersion: version.substring(2, 11), build: 001]
+ variables = [majorVersion: version.substring(2, 11), build: 001, OSX_KEYSTORE: OSX_KEYSTORE, JSIGN_SH: JSIGN_SH]
destination = "$jalviewDir/$install4jBuildDir/$JAVA_VERSION"
buildSelected = true
+
+ if (OSX_KEYPASS) {
+ macKeystorePassword=OSX_KEYPASS
+
+ }
+
inputs.dir(project.ext.getdownWebsiteDir)
inputs.file(install4jConf)
inputs.dir(macosJavaVMDir)