Package aQute.bnd.differ.Baseline

Examples of aQute.bnd.differ.Baseline.Info


    @Override
    public List<MarkerData> generateMarkerData(IProject project, Project model, Location location) throws Exception {
        List<MarkerData> result = new LinkedList<MarkerData>();

        Info baselineInfo = (Info) location.details;
        IJavaProject javaProject = JavaCore.create(project);

        result.addAll(generatePackageInfoMarkers(baselineInfo, javaProject, location.message));
        result.addAll(generateStructuralChangeMarkers(baselineInfo, javaProject));
View Full Code Here


    private static final ILogger logger = Logger.getLogger(BaselineErrorHandler.class);

    public List<MarkerData> generateMarkerData(IProject project, Project model, Location location) throws Exception {
        List<MarkerData> result = new LinkedList<MarkerData>();

        Info baselineInfo = (Info) location.details;
        IJavaProject javaProject = JavaCore.create(project);

        result.addAll(generatePackageInfoMarkers(baselineInfo, javaProject, location.message));
        result.addAll(generateStructuralChangeMarkers(baselineInfo, javaProject));
View Full Code Here

                if (getInitialSuggestedVersion(info).compareTo(Version.ONE) < 0) {
                    versions.add(Version.ONE.toString());
                }
            }
      if (element instanceof Info) {
        Info info = (Info) element;
        versions.add(getInitialSuggestedVersion(info).toString());
                if (getInitialSuggestedVersion(info).compareTo(Version.ONE) < 0) {
                    versions.add(Version.ONE.toString());
                }
      }
View Full Code Here

            apiDiff = ((Baseline)element).getDiff();
        }
            return BundleTreeImages.resolveImage("bundle", apiDiff.getDelta().toString().toLowerCase(), null, null); //$NON-NLS-1$
    }
    if (element instanceof Info) {
      Info tree = (Info) element;
      String type = "package"; //$NON-NLS-1$
      String delta = "changed" + '_' + tree.packageDiff.getDelta().toString().toLowerCase(); //$NON-NLS-1$
      String impExp = "export"; //$NON-NLS-1$
      return BundleTreeImages.resolveImage(type, delta, impExp, null);
    }
View Full Code Here

                if (getInitialSuggestedVersion(info).compareTo(Version.ONE) < 0) {
                    versions.add(Version.ONE.toString());
                }
            }
      if (element instanceof Info) {
        Info info = (Info) element;
        versions.add(getInitialSuggestedVersion(info).toString());
                if (getInitialSuggestedVersion(info).compareTo(Version.ONE) < 0) {
                    versions.add(Version.ONE.toString());
                }
      }
View Full Code Here

    Set<Info> infoSet = baseline.baseline(newer, older, null);
    System.out.println(differ.tree(newer).get("<api>"));

    assertEquals(1, infoSet.size());
    Info info = infoSet.iterator().next();

    assertTrue(info.mismatch);
    assertEquals("dummy.api", info.packageName);
    assertEquals("1.1.0", info.suggestedVersion.toString());
  }
View Full Code Here

    Jar newer = new Jar(IO.getFile("testresources/api-consumerbump.jar"));

    Set<Info> infoSet = baseline.baseline(newer, older, null);

    assertEquals(1, infoSet.size());
    Info info = infoSet.iterator().next();

    assertTrue(info.mismatch);
    assertEquals("dummy.api", info.packageName);
    assertEquals("2.0.0", info.suggestedVersion.toString());
  }
View Full Code Here

TOP

Related Classes of aQute.bnd.differ.Baseline.Info

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.