* no update checks for webstart and fatjars

This commit is contained in:
Reinhard Pointner 2011-12-25 12:46:39 +00:00
parent 05a7fbb1af
commit 228b3db8f5
2 changed files with 7 additions and 1 deletions

View File

@ -117,7 +117,7 @@ public class Main {
MediaTypes.getDefault(); MediaTypes.getDefault();
// check for application updates (only when installed, i.e. not running via fatjar or webstart) // check for application updates (only when installed, i.e. not running via fatjar or webstart)
if (System.getProperty("application.deployment") != null) { if (!isPortableDeployment()) {
checkUpdate(); checkUpdate();
} }
} catch (Exception e) { } catch (Exception e) {

View File

@ -137,6 +137,12 @@ public final class Settings {
} }
public static boolean isPortableDeployment() {
String deployment = getApplicationDeployment();
return deployment == null || deployment.equals("webstart");
}
public static int getApplicationRevisionNumber() { public static int getApplicationRevisionNumber() {
try { try {
Manifest manifest = new Manifest(Settings.class.getResourceAsStream("/META-INF/MANIFEST.MF")); Manifest manifest = new Manifest(Settings.class.getResourceAsStream("/META-INF/MANIFEST.MF"));