Package slash.common.system

Examples of slash.common.system.Version


                return (BaseNavigationFormat) format;
        return null;
    }

    private void run(String[] args) {
        Version version = parseVersionFromManifest();
        log.info("Started RouteConverter " + version.getVersion() + " from " + version.getDate() +
                " on " + getJava() + " and " + getPlatform() + " with " + getMaximumMemory() + " MByte heap");
        if (args.length != 3) {
            log.info("Usage: java -jar RouteConverterCmdLine.jar <source file> <target format> <target file>");
            logFormatNames(getWriteFormatsSortedByName());
            System.exit(5);
View Full Code Here


    public static Preferences getPreferences() {
        return preferences;
    }

    public static String getTitle() {
        Version version = parseVersionFromManifest();
        return MessageFormat.format(getBundle().getString("title"), RouteConverter.getInstance().getEdition(), version.getVersion(), version.getDate());
    }
View Full Code Here

    protected String getEdition() {
        return "Online";
    }

    private static String getRouteConverter() {
        Version version = parseVersionFromManifest();
        return version.getOperationSystem() + " (" + version.getBits() + "-bit)";
    }
View Full Code Here

        public boolean existsLaterRouteConverterVersion() {
            String latestRouteConverterVersion = getLatestRouteConverterVersion();
            if (latestRouteConverterVersion == null)
                return false;
            boolean isLatestRouteConverterVersion = new Version(getMyRouteConverterVersion()).isLaterVersionThan(new Version(latestRouteConverterVersion));
            return !isLatestRouteConverterVersion;
        }
View Full Code Here

        public String getMyJavaVersion() {
            return myJavaVersion;
        }

        public String getLatestJavaVersion() {
            Version version = new Version(myJavaVersion);
            String latestVersionKey = version.isLaterVersionThan(new Version("1.8.0")) ? JAVA8_VERSION_KEY :
                    version.isLaterVersionThan(new Version("1.7.0")) ? JAVA7_VERSION_KEY :
                            JAVA6_VERSION_KEY;
            return getValue(latestVersionKey);
        }
View Full Code Here

TOP

Related Classes of slash.common.system.Version

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.