Package org.apache.lucene.validation.ivyde

Examples of org.apache.lucene.validation.ivyde.IvyNodeElement


      options.setUseCacheOnly(false);       // Download the internet!
      options.setOutputReport(false);       // Don't print to the console
      options.setLog(LogOptions.LOG_QUIET); // Don't log to the console
      options.setConfs(new String[] {"*"}); // Resolve all configurations
      ResolveReport resolveReport = ivy.resolve(findLatestIvyXmlFile.toURI().toURL(), options);
      IvyNodeElement root = IvyNodeElementAdapter.adapt(resolveReport);
      for (IvyNodeElement element : root.getDependencies()) {
        String coordinate = "/" + element.getOrganization() + "/" + element.getName();
        Dependency dependency = directDependencies.get(coordinate);
        if (null == dependency) {
          log("ERROR: the following coordinate key does not appear in "
              + centralizedVersionsFile.getName() + ": " + coordinate, Project.MSG_ERR);
View Full Code Here


      transitiveIvyXmlFile = new File(buildDir, "transitive." + moduleDirPrefix + ".ivy.xml");
      try (Writer writer = new OutputStreamWriter(new FileOutputStream(transitiveIvyXmlFile), StandardCharsets.UTF_8)) {
        writer.write(ivyXmlContent);
      }
      ResolveReport resolveReport = ivy.resolve(transitiveIvyXmlFile.toURI().toURL(), options);
      IvyNodeElement root = IvyNodeElementAdapter.adapt(resolveReport);
      for (IvyNodeElement directDependency : root.getDependencies()) {
        String coordinate = "/" + directDependency.getOrganization() + "/" + directDependency.getName();
        Dependency dependency = directDependencies.get(coordinate);
        if (null == dependency) {
          log("ERROR: the following coordinate key does not appear in "
              + centralizedVersionsFile.getName() + ": " + coordinate);
View Full Code Here

          builder.append(", ");
        }
        builder.append(moduleName);
      }
      builder.append(":\n");
      IvyNodeElement element = first.getKey();
      builder.append('/').append(element.getOrganization()).append('/').append(element.getName())
             .append('=').append(element.getRevision()).append('\n');
      emitConflict(builder, coordinate, first.getKey(), 1);
       
      if (notPrinted > 0) {
        builder.append("... and ").append(notPrinted).append(" more\n");
      }
View Full Code Here

TOP

Related Classes of org.apache.lucene.validation.ivyde.IvyNodeElement

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.