From: Ben Soares Date: Thu, 25 Apr 2019 13:59:38 +0000 (+0100) Subject: JAL-3224 JAL-3225 Some fixes in install4j template and build.gradle, and a correction... X-Git-Tag: Release_2_11_0~17^2~7^2~1^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=6f9d7b98943ecba292a9c0dd65b30c4d8150c98f;p=jalview.git JAL-3224 JAL-3225 Some fixes in install4j template and build.gradle, and a correction of the Policy code in Jalview.java that I messed up earlier --- diff --git a/build.gradle b/build.gradle index 4cb626d..ed3ace3 100644 --- a/build.gradle +++ b/build.gradle @@ -64,12 +64,14 @@ ext { modules_runtimeClasspath = modules_compileClasspath } +def JAVA_INTEGER_VERSION def additional_compiler_args = [] // these are getdown.txt properties defined dependent on the JAVA_VERSION def getdown_alt_java_min_version // this property is assigned below and expanded to multiple lines in the getdown task def getdown_alt_multi_java_location if (JAVA_VERSION.equals("1.8")) { + JAVA_INTEGER_VERSION = "8" libDir = j11libDir libDistDir = j8libDir compile_source_compatibility = 1.8 @@ -77,6 +79,7 @@ if (JAVA_VERSION.equals("1.8")) { getdown_alt_java_min_version = getdown_alt_java8_min_version getdown_alt_multi_java_location = getdown_alt_java8_txt_multi_java_location } else if (JAVA_VERSION.equals("11")) { + JAVA_INTEGER_VERSION = "11" libDir = j11libDir libDistDir = j11libDir compile_source_compatibility = 11 @@ -805,15 +808,15 @@ def install4jConfFile = "jalview-installers-java"+JAVA_VERSION+".install4j" install4jConf = "$install4jDir/$install4jConfFile" task copyInstall4jTemplate(type: Copy) { - macosJavaVMDir = System.env.HOME+"/buildtools/jre/openjdk-java_vm/getdown/macos-jre"+JAVA_VERSION+"/java_vm" + macosJavaVMDir = System.env.HOME+"/buildtools/jre/openjdk-java_vm/getdown/macos-jre"+JAVA_VERSION+"/jre" macosJavaVMTgz = System.env.HOME+"/buildtools/jre/openjdk-java_vm/install4j/tgz/macos-jre"+JAVA_VERSION+".tar.gz" - windowsJavaVMDir = System.env.HOME+"/buildtools/jre/openjdk-java_vm/getdown/windows-jre"+JAVA_VERSION+"/java_vm" + windowsJavaVMDir = System.env.HOME+"/buildtools/jre/openjdk-java_vm/getdown/windows-jre"+JAVA_VERSION+"/jre" windowsJavaVMTgz = System.env.HOME+"/buildtools/jre/openjdk-java_vm/install4j/tgz/windows-jre"+JAVA_VERSION+".tar.gz" from (install4jDir) { include install4jTemplate rename (install4jTemplate, install4jConfFile) filter(ReplaceTokens, beginToken: '', endToken: '', tokens: ['9999999999': JAVA_VERSION]) - filter(ReplaceTokens, beginToken: '$$', endToken: '$$', tokens: ['JAVA_VERSION': JAVA_VERSION, 'VERSION': JALVIEW_VERSION, 'MACOS_JAVA_VM_DIR': macosJavaVMDir, 'MACOS_JAVA_VM_TGZ': macosJavaVMTgz, 'WINDOWS_JAVA_VM_DIR': windowsJavaVMDir, 'WINDOWS_JAVA_VM_TGZ': windowsJavaVMTgz]) + 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]) } into install4jDir inputs.files("$install4jDir/$install4jTemplate") diff --git a/j11lib/getdown-core-1.8.3-SNAPSHOT.jar b/j11lib/getdown-core-1.8.3-SNAPSHOT.jar deleted file mode 100644 index e9b8c4a..0000000 Binary files a/j11lib/getdown-core-1.8.3-SNAPSHOT.jar and /dev/null differ diff --git a/j8lib/getdown-core-1.8.3-SNAPSHOT.jar b/j8lib/getdown-core-1.8.3-SNAPSHOT.jar deleted file mode 100644 index e9b8c4a..0000000 Binary files a/j8lib/getdown-core-1.8.3-SNAPSHOT.jar and /dev/null differ diff --git a/lib/getdown-core-1.8.3-SNAPSHOT.jar b/lib/getdown-core-1.8.3-SNAPSHOT.jar deleted file mode 100644 index e9b8c4a..0000000 Binary files a/lib/getdown-core-1.8.3-SNAPSHOT.jar and /dev/null differ diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index b5fa7fa..c66e63e 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -52,6 +52,11 @@ import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; +import java.security.AllPermission; +import java.security.CodeSource; +import java.security.PermissionCollection; +import java.security.Permissions; +import java.security.Policy; import java.util.HashMap; import java.util.Map; import java.util.Vector; @@ -59,7 +64,6 @@ import java.util.Vector; import javax.swing.LookAndFeel; import javax.swing.UIManager; -import com.sun.xml.ws.policy.Policy; import com.threerings.getdown.util.LaunchUtil; import groovy.lang.Binding; @@ -94,8 +98,6 @@ public class Jalview static { // grab all the rights we can the JVM - Policy.createEmptyPolicy(); - /* Policy.setPolicy(new Policy() { @Override @@ -111,7 +113,6 @@ public class Jalview { } }); - */ } /** diff --git a/utils/install4j/install4j_template.install4j b/utils/install4j/install4j_template.install4j index 3366b72..0877e5c 100644 --- a/utils/install4j/install4j_template.install4j +++ b/utils/install4j/install4j_template.install4j @@ -34,10 +34,10 @@ - + - + @@ -79,9 +79,9 @@ - - - + + + @@ -113,9 +113,9 @@ - + - + @@ -963,6 +963,72 @@ return console.askYesNo(message, true); + + + + + + + + + jre + + + + + .install4j + + + + + dist + + + + + resource + + + + + getdown-launcher.jar + + + + + getdown-launcher-old.jar + + + + + getdown-launcher-new.jar + + + + + digest.txt + + + + + digest2.txt + + + + + getdown.txt + + + + + + true + + + + + + @@ -1574,7 +1640,7 @@ return console.askYesNo(message, true); - + @@ -1596,7 +1662,7 @@ return console.askYesNo(message, true); - + @@ -1617,10 +1683,10 @@ return console.askYesNo(message, true); - + - + @@ -1642,7 +1708,7 @@ return console.askYesNo(message, true); - + @@ -1663,7 +1729,7 @@ return console.askYesNo(message, true); - +