<parent>
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
- <version>1.8.3-1.1.2_JVL</version>
+ <version>1.8.3-1.1.4_JVL</version>
</parent>
<artifactId>getdown-ant</artifactId>
<parent>
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
- <version>1.8.3-1.1.2_JVL</version>
+ <version>1.8.3-1.1.4_JVL</version>
</parent>
<artifactId>getdown-core</artifactId>
separated by commas (app1.foo.com,app2.bar.com,app3.baz.com). -->
<properties>
<getdown.host.whitelist>jalview.org,*.jalview.org</getdown.host.whitelist>
+ <connect_timeout>8</connect_timeout>
+ <read_timeout>15</read_timeout>
</properties>
<build>
<filter token="build_time" value="${getdown.build.time}" />
<filter token="build_version" value="${project.version}" />
<filter token="host_whitelist" value="${getdown.host.whitelist}" />
+ <filter token="connect_timeout" value="${connect_timeout}" />
+ <filter token="read_timeout" value="${read_timeout}" />
</filterset>
</copy>
</target>
public static List<String> hostWhitelist () {
return Arrays.asList(StringUtil.parseStringArray("@host_whitelist@"));
}
+
+ /*
+ * <p>The default connect_timeout to use. Overridden by system property of the same name at runtime
+ */
+ public static int defaultConnectTimeout () {
+ try {
+ return Integer.valueOf("@connect_timeout@");
+ } catch (Exception e) {
+ return 0;
+ }
+ }
+
+ /*
+ * <p>The default read_timeout to use. Overridden by system property of the same name at runtime
+ */
+ public static int defaultReadTimeout () {
+ try {
+ return Integer.valueOf("@read_timeout@");
+ } catch (Exception e) {
+ return 30;
+ }
+ }
}
import java.util.regex.Pattern;
import com.threerings.getdown.util.VersionUtil;
+import com.threerings.getdown.data.Build;
/**
* This class encapsulates all system properties that are read and processed by Getdown. Don't
* to more quickly timeout its startup update check if the server with which it is
* communicating is not available. Usage: {@code -Dconnect_timeout=N}. */
public static int connectTimeout () {
- return Integer.getInteger("connect_timeout", 0);
+ return Integer.getInteger("connect_timeout", Build.defaultConnectTimeout());
}
/** Specifies the read timeout (in seconds) to use when downloading all files from the server.
* update process wil fail. Setting the timeout to zero (or a negative value) will disable it.
* Usage: {@code -Dread_timeout=N}. */
public static int readTimeout () {
- return Integer.getInteger("read_timeout", 30);
+ return Integer.getInteger("read_timeout", Build.defaultReadTimeout());
}
/** Returns the number of threads used to perform digesting and verifying operations in
<parent>
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
- <version>1.8.3-1.1.2_JVL</version>
+ <version>1.8.3-1.1.4_JVL</version>
</parent>
<artifactId>getdown-launcher</artifactId>
# When at 0%
m.initialising = Initialising
+m.starting = Starting
# When at 0%
m.initialising = Initialising
+m.starting = Starting
# When at 0%
m.initialising = Initialising
+m.starting = Starting
# When at 0%
m.initialising = Initialising
+m.starting = Starting
# When at 0%
m.initialising = Initialising
+m.starting = Starting
# When at 0%
m.initialising = Initialising
+m.starting = Starting
# When at 0%
m.initialising = Initialising
+m.starting = Starting
# When at 0%
m.initialising = Initialising
+m.starting = Starting
# When at 0%
m.initialising = Initialising
+m.starting = Starting
if [ x$JVLVERSION != x ]; then
export VERSION=$JVLVERSION
else
- export VERSION=1.8.3-1.0_JVL
+ export VERSION=1.8.3-1.1.4_JVL
fi
if [ x${VERSION%_JVL} = x$VERSION ]; then
perl -p -i -e 's|(<version>)[^<]*JVL[^<]*(</version>)|${1}$ENV{VERSION}${2}|;' pom.xml */pom.xml
-mvn package -Dgetdown.host.whitelist="jalview.org,*.jalview.org"
+mvn package -Dgetdown.host.whitelist="jalview.org,*.jalview.org" -Dconnect_timeout=8 -Dread_timeout=15
RET=$?
if [ x$RET = x0 ]; then
cp launcher/target/getdown-launcher-$VERSION.jar ../../../getdown/lib/getdown-launcher.jar && echo "Copied getdown-launcher.jar to getdown/lib"
<groupId>com.threerings.getdown</groupId>
<artifactId>getdown</artifactId>
<packaging>pom</packaging>
- <version>1.8.3-1.1.2_JVL</version>
+ <version>1.8.3-1.1.4_JVL</version>
<name>getdown</name>
<description>An application installer and updater.</description>