JAL-4409 Added remote JVL files for Linux/Windows
authorBen Soares <b.soares@dundee.ac.uk>
Thu, 16 May 2024 23:57:29 +0000 (00:57 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Thu, 16 May 2024 23:57:29 +0000 (00:57 +0100)
getdown/lib/getdown-core.jar
getdown/lib/getdown-launcher-local.jar
getdown/lib/getdown-launcher.jar
getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/Application.java
getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/EnvConfig.java
getdown/src/getdown/core/src/main/java/com/threerings/getdown/util/Config.java
j11lib/getdown-core.jar
j8lib/getdown-core.jar

index ec5ed62..bf6cfe2 100644 (file)
Binary files a/getdown/lib/getdown-core.jar and b/getdown/lib/getdown-core.jar differ
index fd0b206..fae4504 100644 (file)
Binary files a/getdown/lib/getdown-launcher-local.jar and b/getdown/lib/getdown-launcher-local.jar differ
index 1c7f42f..334be09 100644 (file)
Binary files a/getdown/lib/getdown-launcher.jar and b/getdown/lib/getdown-launcher.jar differ
index 202c30d..f063a18 100644 (file)
@@ -11,8 +11,6 @@ import java.net.MalformedURLException;
 import java.net.Proxy;
 import java.net.SocketAddress;
 import java.net.InetSocketAddress;
-//#####import java.net.URI;
-//#####import java.net.URISyntaxException;
 import java.net.URL;
 import java.net.URLClassLoader;
 import java.net.URLConnection;
@@ -1937,7 +1935,6 @@ public class Application
     }
     
     public static void setStartupFilesFromParameters(List<String> parameters) {
-      log.info("##### Filenames = '"+parameters.toString()+"'");
       // multiple files *might* be passed in as space separated quoted filenames
       String q = "\"";
       for (String p: parameters) {
@@ -1958,11 +1955,9 @@ public class Application
 
           // check for locator file.  Only allow one locator file to be double clicked (if multiple files opened, ignore locator files)
           if (filename.toLowerCase(Locale.ROOT).endsWith("."+Application.LOCATOR_FILE_EXTENSION)) {
-            log.info("##### SETTING LOCATORFILENAME '"+ filename +"'");
             setLocatorFile(filename);
           } else {
             // skip any other locator files in a multiple file list
-            log.info("##### ADDING FILENAME '"+ filename +"'");
             addStartupFile(filename);
           }
         }
index 77997d2..e3993d3 100644 (file)
@@ -15,6 +15,9 @@ import java.security.cert.X509Certificate;
 import java.util.*;
 
 import com.threerings.getdown.util.StringUtil;
+
+import jalview.util.HttpUtils;
+
 import com.threerings.getdown.data.Application;
 
 /** Configuration that comes from our "environment" (command line args, sys props, etc.). */
@@ -145,10 +148,11 @@ public final class EnvConfig {
         int skipArgs = 2;
         // Look for locator file, pass to Application and remove from appArgs
         String argvLocatorFilename = argv.length > 2 ? argv[2] : null;
-        if (
-                !StringUtil.isBlank(argvLocatorFilename)
-                && argvLocatorFilename.toLowerCase(Locale.ROOT).endsWith("."+Application.LOCATOR_FILE_EXTENSION)
-                ) {
+        if (!StringUtil.isBlank(argvLocatorFilename)
+              && argvLocatorFilename.toLowerCase(Locale.ROOT).endsWith("."+Application.LOCATOR_FILE_EXTENSION)) {
+          if (HttpUtils.isJalviewSchemeUri(argvLocatorFilename)) {
+            argvLocatorFilename = HttpUtils.equivalentJalviewUrl(argvLocatorFilename);
+          }
           notes.add(Note.info("locatorFilename in args: '"+argv[2]+"'"));
           Application.setLocatorFile(argvLocatorFilename);
           
index 8bff8ef..6681c35 100644 (file)
@@ -239,9 +239,7 @@ public class Config
             // comment in column 0)
             if (!opts.strictComments && Boolean.parseBoolean((String)data.get("strict_comments"))) {
                 opts.strictComments = true;
-                System.err.println("##### About to reset reader");
                 source.reset();
-                System.err.println("##### Reset reader");
                 return parseConfig(source, opts);
             }
 
index ec5ed62..bf6cfe2 100644 (file)
Binary files a/j11lib/getdown-core.jar and b/j11lib/getdown-core.jar differ
index ec5ed62..bf6cfe2 100644 (file)
Binary files a/j8lib/getdown-core.jar and b/j8lib/getdown-core.jar differ