Package com.tuenti.supernanny.repo.exceptions

Examples of com.tuenti.supernanny.repo.exceptions.ResolutionException


    for (Requirement requirement : artifact.getRequirements()) {
      boolean matched = false;
      for (Artifact a : chosenArtifacts) {
        if (requirement.getName().equals(a.getName())) {
          if (!requirement.matches(a.getName(), a.getVersion())) {
            throw new ResolutionException("Requirement conflict: "
                + artifact.toShortString() + " depends on " + requirement + " but "
                + a.toShortString() + " is already selected.");
          } else {
            // check if the major version is different to throw a
            // warning
View Full Code Here


          return a;
        }
      }
    }
   
    throw new ResolutionException("No artifact found for " + req);
  }
View Full Code Here

    List<Requirement> reqs = new LinkedList<Requirement>();
    if (depFile.exists()) {
      try {
        reqs = dparser.parseDepsFile(depFile);
      } catch (Exception e) {
        throw new ResolutionException(e);
      }
    }
    List<Artifact> artifacts = new ArrayList<Artifact>();
    // return artifact with wildcard version so it matches everything
    artifacts.add(new Artifact(req.getName(), new Version("*"), this, reqs));
View Full Code Here

        ri.changeset = getStrategy().resolveReference(uri, ri.refname);
        return ri;
      }
    }
   
    throw new ResolutionException("Can't find artifact for " + req);
  }
View Full Code Here

      }
      List<Artifact> artifacts = new ArrayList<Artifact>();
      artifacts.add(new DVCSArtifact(req.getName(), ri.reqVersion, this, ri.changeset, subDir, reqs));
      return artifacts;
    } catch (Exception e) {
      throw new ResolutionException(e);
    }
  }
View Full Code Here

TOP

Related Classes of com.tuenti.supernanny.repo.exceptions.ResolutionException

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.