Package com.sonyericsson.hudson.plugins.gerrit.trigger.version

Examples of com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionNumber


     * If it is a snapshot or if any features will be disabled because of this.
     * It should be called whenever we got some new connection status.
     */
    public void checkGerritVersionFeatures() {
        if (connected) {
            GerritVersionNumber version =
                    GerritVersionChecker.createVersionNumber(getVersionString());
            List<GerritVersionChecker.Feature> list = new LinkedList<GerritVersionChecker.Feature>();
            for (GerritVersionChecker.Feature f : GerritVersionChecker.Feature.values()) {
                if (!GerritVersionChecker.isCorrectVersion(version, f)) {
                    list.add(f);
                }
            }
            disabledFeatures = list;
            gerritSnapshotVersion = version.isSnapshot();
        } else {
            disabledFeatures = null;
            gerritSnapshotVersion = false;
        }
    }
View Full Code Here

TOP

Related Classes of com.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionNumber

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.