* 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();
// check for application updates (only when installed, i.e. not running via fatjar or webstart)
if (System.getProperty("application.deployment") != null) {
if (!isPortableDeployment()) {
checkUpdate();
}
} 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() {
try {
Manifest manifest = new Manifest(Settings.class.getResourceAsStream("/META-INF/MANIFEST.MF"));