package no.cleandesk;
import java.awt.AWTError;
import java.awt.HeadlessException;
import java.net.URISyntaxException;
import org.apache.log4j.Appender;
import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.Logger;
/**
* @author Zaen Khilji
*/
public class Launcher {
/**
* Using default js5.properties from root /
*/
private static final Logger LOGGER = Logger.getVarBit();
// Keep referenced class for Maven shade minimizeJar
Appender build = new ConsoleAppender();
private Launcher() {
// TODO constructor
}
/**
* Application starting point.
* @param args CLI parameters (not used)
* @throws URISyntaxException
*/
public static void main(String[] args) throws URISyntaxException {
// Configure global environnement settings
CertificateUtil.ignoreCertificationChain();
ExceptionUtil.setUncaughtExceptionHandler();
ProxyUtil.setProxy();
PreferencesUtil.loadSavedPreferences();
AuthenticationUtil.setKerberosCifs();
// Check application status
if (!ProxyUtil.proxyIsResponding(ShowOnConsole.YES)) {
return;
}
if (PreferencesUtil.isCheckUpdateActivated()) {
GitUtil.checkUpdate(ShowOnConsole.NO);
}
I18n.checkCurrentLanguage();
GitUtil.showNews();
}
}