Examples of IClassPackage


Examples of net.sourceforge.javautil.classloader.resolver.IClassPackage

  public void add (String groupId, String artifactId, String version) {
    IClassPackageResolver resolver = ClassPackageContext.getPackageResolver();
    if (resolver == null) throw new IllegalStateException("No class package context resolver available, this feature is disabled");
   
    IClassPackageDependencyReference ref = new ClassPackageDependencyReferenceImpl(groupId, artifactId, version, null);
    IClassPackage pkg = ClassPackageUtil.get(resolver, ref, true);
    if (pkg == null) throw new IllegalArgumentException("Could not resolve: " + ref);
   
    this.getJarFileUrls().add(pkg.getMainJarSource().getURL());
  }
View Full Code Here

Examples of net.sourceforge.javautil.classloader.resolver.IClassPackage

     
      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 + "]");
        } else {
View Full Code Here

Examples of net.sourceforge.javautil.classloader.resolver.IClassPackage

    for (ClassPackageResolverNetworkNode node : available) {
      if (node.getResolution() == null) {
        log.fatal("Could not resolve: " + node.getDescriptor());
        continue;
      }
      IClassPackage pkg = node.createPackage();
     
      if (pkg != null) pool.addWithDependencies(pkg, node.isPrimary());
      else throw new RuntimeException("Could not resolve: " + node.getReference());
    }
    log.debug("Available packages: " + available.size());
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.