Class Baseline

java.lang.Object
aQute.bnd.differ.Baseline

public class Baseline extends Object
This class maintains
  • Field Details

  • Constructor Details

  • Method Details

    • baseline

      public Set<Baseline.Info> baseline(Jar newer, Jar older, Instructions packageFilters) throws Exception
      This method compares a jar to a baseline jar and returns version suggestions if the baseline does not agree with the newer jar. The returned set contains all the exported packages.
      Parameters:
      newer -
      older -
      Returns:
      null if ok, otherwise a set of suggested versions for all packages (also the ones that were ok).
      Throws:
      Exception
    • baseline

      public Set<Baseline.Info> baseline(Tree n, Parameters nExports, Tree o, Parameters oExports, Instructions packageFilters) throws Exception
      Throws:
      Exception
    • mismatch

      private boolean mismatch(Version older, Version newer)
      "Major version zero (0.y.z) is for initial development. Anything may change at any time. The public API should not be considered stable."
      See Also:
    • getRootCauses

      private String getRootCauses(Diff apiDiff)
    • getRootCauses

      private void getRootCauses(Formatter f, Diff diff, String path)
    • getDiff

      public Diff getDiff()
      Gets the generated diff
      Returns:
      the diff
    • getPackageInfos

      public Set<Baseline.Info> getPackageInfos()
    • getBsn

      public String getBsn()
    • getSuggestedVersion

      public Version getSuggestedVersion()
    • setSuggestedVersion

      public void setSuggestedVersion(Version suggestedVersion)
    • getNewerVersion

      public Version getNewerVersion()
    • getOlderVersion

      public Version getOlderVersion()
    • getReleaseRepository

      public String getReleaseRepository()
    • setReleaseRepository

      public void setReleaseRepository(String releaseRepository)
    • bump

      private Version bump(Delta delta, Version last, int offset, int base)
    • getVersion

      private Version getVersion(Map<String,String> map)
    • getExports

      private Parameters getExports(Jar jar) throws Exception
      Throws:
      Exception
    • getVersion

      private Version getVersion(Tree top)
    • getBsn

      private String getBsn(Tree top)
    • bumpBundle

      private Version bumpBundle(Delta delta, Version last, int offset, int base)
    • getBundleInfo

      public Baseline.BundleInfo getBundleInfo()