git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a20e83f
)
JAL-3750 parse protocol before checking if argument to -open can be opened as a file
author
Jim Procter
<jprocter@issues.jalview.org>
Thu, 17 Sep 2020 11:09:42 +0000
(12:09 +0100)
committer
Jim Procter
<jprocter@issues.jalview.org>
Thu, 17 Sep 2020 11:09:42 +0000
(12:09 +0100)
src/jalview/bin/Jalview.java
patch
|
blob
|
history
diff --git
a/src/jalview/bin/Jalview.java
b/src/jalview/bin/Jalview.java
index
341bcba
..
613cc02
100755
(executable)
--- a/
src/jalview/bin/Jalview.java
+++ b/
src/jalview/bin/Jalview.java
@@
-451,7
+451,11
@@
public class Jalview
}
System.out.println("CMD [-open " + file + "] executed successfully!");
- if (!file.startsWith("http://"))
+
+
+ protocol = AppletFormatAdapter.checkProtocol(file);
+
+ if (protocol == DataSourceType.FILE)
{
if (!(new File(file)).exists())
{
@@
-463,8
+467,6
@@
public class Jalview
}
}
- protocol = AppletFormatAdapter.checkProtocol(file);
-
try
{
format = new IdentifyFile().identify(file, protocol);