-1.8.3-1.3.1_FJVL
+1.8.3-1.4.0_FJVL
-1.8.3-1.3.1_JVL
+1.8.3-1.4.0_JVL
<parent>
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
- <version>1.8.3-1.3.1_FJVL</version>
+ <version>1.8.3-1.4.0_FJVL</version>
</parent>
<artifactId>getdown-ant</artifactId>
<parent>
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
- <version>1.8.3-1.3.1_FJVL</version>
+ <version>1.8.3-1.4.0_FJVL</version>
</parent>
<artifactId>getdown-core</artifactId>
if (_appargs.size() > 0) {
String uri = _appargs.get(0);
try {
- log.info("TRYING TO PARSE URL '"+uri+"'");
+ log.info("Trying to parse uri '"+uri+"'");
URI jalviewUri = new URI(uri);
if (jalviewUri != null) {
String scheme = jalviewUri.getScheme();
- if (scheme != null && (scheme.equals("jalview") || scheme.equals("jalviews"))) {
- boolean https = jalviewUri.getScheme().equals("jalviews");
- String host = jalviewUri.getHost();
- int port = jalviewUri.getPort();
- String file = jalviewUri.getPath();
- String ref = jalviewUri.getFragment();
- String query = jalviewUri.getQuery();
-
+ String host = jalviewUri.getHost();
+ if (scheme != null && scheme.startsWith("jalview")
+ && (scheme.length() == 8 || scheme.equals("jalviewhttp") || scheme.equals("jalviewhttps"))) {
_appargs.clear();
if (host != null && host.length() > 0) {
- URL newUrl = new URL(
- (https?"https":"http")
- + "://"
- + host
- + (port > -1? String.valueOf(port) : "")
- + jalviewUri.getRawPath()
- + (query != null && query.length() > 0 ? "?" + jalviewUri.getRawQuery() : "")
- );
- _appargs.add(newUrl.toString());
+ URI newUri = new URI(
+ scheme.equals("jalviewhttp") ? "http" : "https",
+ jalviewUri.getUserInfo(),
+ host,
+ jalviewUri.getPort(),
+ jalviewUri.getPath(),
+ jalviewUri.getQuery(),
+ jalviewUri.getFragment()
+ );
+ // open a URL
+ _appargs.add(newUri.toURL().toString());
} else {
- _appargs.add(file);
+ // open a file
+ _appargs.add(jalviewUri.getPath());
}
-
- if (ref != null && ref.length() > 0) {
- String[] refArgs = ref.split("&");
- for (String refArg : refArgs) {
- if (refArg.startsWith("jvmmempc=")) {
- jvmmempc = refArg.substring(9);
- continue;
- }
- if (refArg.startsWith("jvmmemmax=")) {
- jvmmemmax = refArg.substring(10);
- continue;
- }
- _appargs.add(URLDecoder.decode(refArg, "UTF-8"));
- }
- }
-
}
+
}
- } catch (URISyntaxException e) {
+ } catch (URISyntaxException | MalformedURLException e) {
log.error("Malformed jalview URI", uri);
}
}
<parent>
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
- <version>1.8.3-1.3.1_FJVL</version>
+ <version>1.8.3-1.4.0_FJVL</version>
</parent>
<artifactId>getdown-launcher</artifactId>
if [ x$JVLVERSION != x ]; then
export VERSION=$JVLVERSION
else
- export VERSION=1.8.3-1.3.1_JVL
+ export VERSION=1.8.3-1.4.0_JVL
fi
if [ x${VERSION%_JVL} = x$VERSION ]; then
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
<packaging>pom</packaging>
- <version>1.8.3-1.3.1_FJVL</version>
+ <version>1.8.3-1.4.0_FJVL</version>
<name>getdown</name>
<description>An application installer and updater.</description>
<?xml version="1.0" encoding="UTF-8"?>
-<install4j version="10.0.6" transformSequenceNumber="10">
+<install4j version="10.0.7" transformSequenceNumber="10">
<directoryPresets config="bin/Jalview" />
<application name="${compiler:JALVIEW_APPLICATION_NAME}" applicationId="${compiler:WINDOWS_APPLICATION_ID}" mediaDir="${compiler:BUILD_DIR}" lzmaCompression="true" shortName="${compiler:INTERNAL_ID}" publisher="University of Dundee" publisherWeb="https://www.jalview.org/" version="${compiler:JALVIEW_VERSION}" allPathsRelative="true" macVolumeId="5aac4968c304f65" javaMinVersion="${compiler:JAVA_MIN_VERSION}" javaMaxVersion="${compiler:JAVA_MAX_VERSION}" allowBetaVM="true" jdkMode="jdk" jdkName="JDK 11.0">
<searchSequence>
<macStaticAssociations>
<urlHandler scheme="jalview" />
<urlHandler scheme="jalviews" />
+ <urlHandler scheme="jalviewhttp" />
+ <urlHandler scheme="jalviewhttps" />
<urlHandler scheme="${compiler:EXTRA_SCHEME}" />
</macStaticAssociations>
</launcher>
</group>
<action id="2350" beanClass="com.install4j.runtime.beans.actions.desktop.UrlHandlerAction" actionElevationType="elevated" rollbackBarrierExitCode="0">
<serializedBean>
- <property name="launcherId" type="string">JALVIEW</property>
+ <property name="launcherId" type="string">737</property>
<property name="scheme" type="string">jalview</property>
</serializedBean>
</action>
- <action id="2450" beanClass="com.install4j.runtime.beans.actions.desktop.UrlHandlerAction" actionElevationType="elevated" rollbackBarrierExitCode="0">
+ <action id="2822" beanClass="com.install4j.runtime.beans.actions.desktop.UrlHandlerAction" actionElevationType="elevated" rollbackBarrierExitCode="0">
<serializedBean>
- <property name="launcherId" type="string">JALVIEW</property>
+ <property name="launcherId" type="string">737</property>
<property name="scheme" type="string">jalviews</property>
</serializedBean>
</action>
+ <action id="2819" beanClass="com.install4j.runtime.beans.actions.desktop.UrlHandlerAction" actionElevationType="elevated" rollbackBarrierExitCode="0">
+ <serializedBean>
+ <property name="launcherId" type="string">737</property>
+ <property name="scheme" type="string">jalviewhttp</property>
+ </serializedBean>
+ </action>
+ <action id="2820" beanClass="com.install4j.runtime.beans.actions.desktop.UrlHandlerAction" actionElevationType="elevated" rollbackBarrierExitCode="0">
+ <serializedBean>
+ <property name="launcherId" type="string">737</property>
+ <property name="scheme" type="string">jalviewhttps</property>
+ </serializedBean>
+ </action>
<action id="2641" beanClass="com.install4j.runtime.beans.actions.desktop.UrlHandlerAction" actionElevationType="elevated" rollbackBarrierExitCode="0">
<serializedBean>
<property name="launcherId" type="string">JALVIEW</property>