// configure classpath/args for j8/j11 compilation
+def jalviewDirAbsolutePath = file(jalviewDir).getAbsolutePath()
def libDir
def libDistDir
def compile_source_compatibility
getdownJ11libDir = getdownWebsiteDir + '/' + getdown_j11lib_dir
getdownResourceDir = getdownWebsiteDir + '/' + getdown_resource_dir
getdownLauncher = jalviewDir + '/' + getdown_launcher
- getdownFilesDir = jalviewDir + '/' + getdown_files_dir
+ getdownFilesDir = jalviewDir + '/' + getdown_files_dir + '/' + JAVA_VERSION + '/'
getdownLib1 = jalviewDir + '/' + getdown_lib1
def getdownChannel = getdown_channel_name
if (getdown_channel_name.equals("COMMIT")) {
}
}
+ // NOT USING MODULES YET, EVERYTHING SHOULD BE IN dist
+ /*
if (JAVA_VERSION.equals("11")) {
def j11libFiles = fileTree(dir: "$jalviewDir/$j11libDir", include: ["*.jar"]).getFiles()
j11libFiles.sort().each{f ->
}
}
}
+ */
getdownTextString += "code = " + file(getdownLauncher).getName() + "\n"
getdownTextString += "class = " + mainClass + "\n"
copy {
from getdownLauncher
- into project.ext.getdownWebsiteDir
- }
-
- copy {
- from getdownLauncher
into project.ext.getdownFilesDir
}
copy {
- from getdownLib1
- into project.ext.getdownFilesDir
+ from getdownLauncher
+ into project.ext.getdownWebsiteDir
}
copy {
from getdownLib1
- into project.ext.getdownWebsiteDir
+ into project.ext.getdownFilesDir + '/' + packageDir
}
copy {
include install4jTemplate
rename (install4jTemplate, install4jConfFile)
filter(ReplaceTokens, beginToken: '', endToken: '', tokens: ['9999999999': JAVA_VERSION])
- filter(ReplaceTokens, beginToken: '$$', endToken: '$$', tokens: ['VERSION': JALVIEW_VERSION, 'MACOS_JAVA_VM_DIR': macosJavaVMDir, 'WINDOWS_JAVA_VM_DIR': windowsJavaVMDir])
+ filter(ReplaceTokens, beginToken: '$$', endToken: '$$', tokens: ['JAVA_VERSION': JAVA_VERSION, 'VERSION': JALVIEW_VERSION, 'MACOS_JAVA_VM_DIR': macosJavaVMDir, 'WINDOWS_JAVA_VM_DIR': windowsJavaVMDir])
}
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)