Package cpw.mods.fml.common.versioning

Examples of cpw.mods.fml.common.versioning.ComparableVersion


            this.pattern = pattern;
            this.filename = filename;
            Matcher m = pattern.matcher(filename);
            if(m.matches()) {
                name = m.group(1);
                version = new ComparableVersion(m.group(2));
            }
            else {
                name = null;
                version = null;
            }
View Full Code Here


                    @Override public Void apply(String ret) {
                        if (!ret.startsWith("Ret: ")) {
                            CodeChickenCorePlugin.logger.error("Failed to check update for " + mod + " returned: " + ret);
                            return null;
                        }
                        ComparableVersion newversion = new ComparableVersion(ret.substring(5));
                        if (newversion.compareTo(new ComparableVersion(version)) > 0)
                            addUpdateMessage("Version " + newversion + " of " + mod + " is available");
                        return null;
                    }
                });
    }
View Full Code Here

TOP

Related Classes of cpw.mods.fml.common.versioning.ComparableVersion

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.