Package net.sourceforge.javautil.classloader.resolver.IClassPackage

Examples of net.sourceforge.javautil.classloader.resolver.IClassPackage.IVersion.compareTo()


      }
     
      IVersion version = this.getVersion(pkg.getGroupId(), pkg.getArtifactId(), id, null);
      if (version == null) {
        this.packages.put(id, pkg);
      } else if (version.compareTo( pkg.getVersion() ) < 0) {
        IClassPackage old = this.packages.get(id);
       
        if (this.isPrimaryPackage(pkg, this)) {
          conflicts.add(pkg);
          log.info("Canceling upgrade for primary " + old + " [new: " + pkg + "]");
View Full Code Here


        } else {
          log.info("Upgrading from " + old + " to " + pkg);
          this.removeFromScope(pkg, this);
          this.packages.put(id, pkg);
        }
      } else if (version.compareTo( pkg.getVersion() ) > 0) {
        conflicts.add(pkg); this.conflicts.add(pkg);
      }
    }
   
    return conflicts;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.