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;
}
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) {
// 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);
}
}
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.). */
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);
// 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);
}