JAL-3224 JAL-3225 Added lines to check for updates to getdown-launcher.jar into Jalvi...
authorBen Soares <bsoares@dundee.ac.uk>
Thu, 25 Apr 2019 01:02:49 +0000 (02:02 +0100)
committerBen Soares <bsoares@dundee.ac.uk>
Thu, 25 Apr 2019 01:02:49 +0000 (02:02 +0100)
12 files changed:
.classpath
.settings/org.eclipse.jdt.core.jalview.prefs
.settings/org.eclipse.jdt.core.prefs
build.gradle
gradle.properties
j11lib/getdown-core-1.8.3-SNAPSHOT.jar [new file with mode: 0644]
j11lib/getdown-launcher.jar [deleted file]
j8lib/getdown-core-1.8.3-SNAPSHOT.jar [new file with mode: 0644]
j8lib/getdown-launcher.jar [deleted file]
lib/getdown-core-1.8.3-SNAPSHOT.jar [new file with mode: 0644]
src/jalview/bin/Jalview.java
utils/install4j/install4j_template.install4j

index ac6ed96..7a5cc53 100644 (file)
@@ -1,30 +1,28 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-       <classpathentry kind="src" output="bin/main" path="src">
+       <classpathentry kind="output" path="bin/default"/>
+       <classpathentry output="bin/main" kind="src" path="src">
                <attributes>
                        <attribute name="gradle_scope" value="main"/>
                        <attribute name="gradle_used_by_scope" value=""/>
                </attributes>
        </classpathentry>
-       <classpathentry kind="src" output="bin/main" path="resources">
+       <classpathentry output="bin/main" kind="src" path="resources">
                <attributes>
                        <attribute name="gradle_scope" value="main"/>
                        <attribute name="gradle_used_by_scope" value=""/>
                </attributes>
        </classpathentry>
-       <classpathentry kind="src" output="bin/test" path="test">
+       <classpathentry output="bin/test" kind="src" path="test">
                <attributes>
-                       <attribute name="test" value="true"/>
                        <attribute name="gradle_scope" value="test"/>
                        <attribute name="gradle_used_by_scope" value=""/>
+                       <attribute name="test" value="true"/>
                </attributes>
        </classpathentry>
-       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/">
-               <attributes>
-                       <attribute name="module" value="true"/>
-               </attributes>
-       </classpathentry>
+       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
        <classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
+       <classpathentry kind="output" path="bin/main"/>
        <classpathentry kind="lib" path="j11lib/jsoup-1.8.1.jar"/>
        <classpathentry kind="lib" path="j11lib/jswingreader-0.3.jar"/>
        <classpathentry kind="lib" path="j11lib/mail-MODULE.jar"/>
@@ -36,7 +34,6 @@
        <classpathentry kind="lib" path="j11lib/JGoogleAnalytics_0.3.jar"/>
        <classpathentry kind="lib" path="j11lib/jetty-http-9.2.10.v20150310.jar"/>
        <classpathentry kind="lib" path="j11lib/javax.activation-MODULE.jar"/>
-       <classpathentry kind="lib" path="j11lib/getdown-launcher.jar"/>
        <classpathentry kind="lib" path="j11lib/commons-logging-1.1.1.jar"/>
        <classpathentry kind="lib" path="j11lib/slf4j-log4j12-1.7.7.jar"/>
        <classpathentry kind="lib" path="j11lib/miglayout-4.0-swing.jar"/>
@@ -49,6 +46,7 @@
        <classpathentry kind="lib" path="j11lib/commons-discovery.jar"/>
        <classpathentry kind="lib" path="j11lib/slf4j-api-1.7.7.jar"/>
        <classpathentry kind="lib" path="j11lib/VAqua5-patch.jar"/>
+       <classpathentry kind="lib" path="j11lib/getdown-core-1.8.3-SNAPSHOT.jar"/>
        <classpathentry kind="lib" path="j11lib/jaxws-api.jar"/>
        <classpathentry kind="lib" path="j11lib/javax.xml.soap-api.jar"/>
        <classpathentry kind="lib" path="j11lib/libquaqua-8.0.jnilib.jar"/>
                        <attribute name="test" value="true"/>
                </attributes>
        </classpathentry>
-       <classpathentry kind="output" path="bin/main"/>
 </classpath>
index 54b3d1a..4b7c545 100644 (file)
@@ -294,4 +294,5 @@ org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
 org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
 org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
 org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
-bentest=pomegranate
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
+
index babbc21..e8b0ee7 100644 (file)
@@ -1,5 +1,5 @@
 #
-#Wed Apr 24 15:04:24 BST 2019
+#Thu Apr 25 01:57:42 BST 2019
 org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
 org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
 org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
@@ -195,7 +195,6 @@ org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_pa
 org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
 org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
 org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
-bentest=pomegranate
 org.eclipse.jdt.core.formatter.comment.format_html=true
 org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
 org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
@@ -241,6 +240,7 @@ org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not i
 org.eclipse.jdt.core.formatter.comment.format_block_comments=false
 org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
 org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
 org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
 org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
 org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
index 0716ae9..55d5709 100644 (file)
@@ -715,8 +715,7 @@ task getdownWebsite() {
     }
     */
 
-    //moved getdown_launcher into dist
-    //getdownTextString += "code = " + packageDir + '/' + file(getdownLauncher).getName() + "\n"
+    getdownTextString += "code = " + file(getdownLauncher).getName() + "\n"
     getdownTextString += "class = " + mainClass + "\n"
 
     def getdown_txt = file(project.ext.getdownWebsiteDir + "/getdown.txt")
@@ -729,7 +728,12 @@ task getdownWebsite() {
 
     copy {
       from getdownLauncher
-      into project.ext.getdownFilesDir + '/' + packageDir
+      into project.ext.getdownFilesDir
+    }
+
+    copy {
+      from getdownLauncher
+      into project.ext.getdownWebsiteDir
     }
 
     copy {
index a82d781..7c794f5 100644 (file)
@@ -60,6 +60,7 @@ getdown_channel_base = http://www.jalview.org/getdown/jalview
 getdown_channel_name = TEST
 getdown_txt_allow_offline = true
 getdown_txt_jvmmempc = 95
+getdown_txt_multi_jvmarg = -Dgetdownappdir="%APPDIR%"
 getdown_txt_strict_comments = true
 getdown_txt_title = Jalview
 getdown_txt_ui.name = Jalview
diff --git a/j11lib/getdown-core-1.8.3-SNAPSHOT.jar b/j11lib/getdown-core-1.8.3-SNAPSHOT.jar
new file mode 100644 (file)
index 0000000..e9b8c4a
Binary files /dev/null and b/j11lib/getdown-core-1.8.3-SNAPSHOT.jar differ
diff --git a/j11lib/getdown-launcher.jar b/j11lib/getdown-launcher.jar
deleted file mode 100644 (file)
index 187694e..0000000
Binary files a/j11lib/getdown-launcher.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
new file mode 100644 (file)
index 0000000..e9b8c4a
Binary files /dev/null and b/j8lib/getdown-core-1.8.3-SNAPSHOT.jar differ
diff --git a/j8lib/getdown-launcher.jar b/j8lib/getdown-launcher.jar
deleted file mode 100644 (file)
index 187694e..0000000
Binary files a/j8lib/getdown-launcher.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
new file mode 100644 (file)
index 0000000..e9b8c4a
Binary files /dev/null and b/lib/getdown-core-1.8.3-SNAPSHOT.jar differ
index ece610a..b5fa7fa 100755 (executable)
@@ -60,6 +60,7 @@ 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;
 import groovy.util.GroovyScriptEngine;
@@ -201,6 +202,23 @@ public class Jalview
             + System.getProperty("os.name") + " "
             + System.getProperty("os.version"));
 
+    String appdirString = System.getProperty("getdownappdir");
+    if (appdirString != null && appdirString.length() > 0)
+    {
+      final File appdir = new File(appdirString);
+      new Thread()
+      {
+        @Override
+        public void run()
+        {
+          LaunchUtil.upgradeGetdown(
+                  new File(appdir, "getdown-launcher-old.jar"),
+                  new File(appdir, "getdown-launcher.jar"),
+                  new File(appdir, "getdown-launcher-new.jar"));
+        }
+      }.start();
+
+    }
     ArgsParser aparser = new ArgsParser(args);
     boolean headless = false;
 
index a006a23..9261cd7 100644 (file)
@@ -91,7 +91,7 @@
       </splashScreen>
       <java mainClass="com.threerings.getdown.launcher.GetdownApp" mainMode="1" vmParameters="" arguments="." allowVMPassthroughParameters="true" preferredVM="" bundleRuntime="true">
         <classPath>
-          <archive location="dist/getdown-launcher.jar" failOnError="true" />
+          <archive location="getdown-launcher.jar" failOnError="true" />
           <archive location="dist/commons-compress-1.18.jar" failOnError="true" />
         </classPath>
         <modulePath />
       </splashScreen>
       <java mainClass="com.threerings.getdown.launcher.GetdownApp" mainMode="1" vmParameters="" arguments="." allowVMPassthroughParameters="true" preferredVM="" bundleRuntime="true">
         <classPath>
-          <archive location="dist/getdown-launcher.jar" failOnError="true" />
+          <archive location="getdown-launcher.jar" failOnError="true" />
           <archive location="dist/commons-compress-1.18.jar" failOnError="true" />
         </classPath>
         <modulePath />