Package aQute.bnd.differ
Class Baseline
java.lang.Object
aQute.bnd.differ.Baseline
This class maintains
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Baseline.BundleInfo
(package private) final Reporter
(package private) String
(package private) Diff
(package private) final Differ
(package private) Set<Baseline.Info>
private static final org.slf4j.Logger
(package private) Version
(package private) Version
(package private) String
(package private) Version
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseline
(Jar newer, Jar older, Instructions packageFilters) This method compares a jar to a baseline jar and returns version suggestions if the baseline does not agree with the newer jar.baseline
(Tree n, Parameters nExports, Tree o, Parameters oExports, Instructions packageFilters) private Version
private Version
bumpBundle
(Delta delta, Version last, int offset, int base) getBsn()
private String
getDiff()
Gets the generated diffprivate Parameters
getExports
(Jar jar) private String
getRootCauses
(Diff apiDiff) private void
getRootCauses
(Formatter f, Diff diff, String path) private Version
getVersion
(Tree top) private Version
getVersion
(Map<String, String> map) private boolean
"Major version zero (0.y.z) is for initial development.void
setReleaseRepository
(String releaseRepository) void
setSuggestedVersion
(Version suggestedVersion)
-
Field Details
-
Constructor Details
-
Baseline
- Throws:
IOException
-
-
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
"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
-
getRootCauses
-
getDiff
Gets the generated diff- Returns:
- the diff
-
getPackageInfos
-
getBsn
-
getSuggestedVersion
-
setSuggestedVersion
-
getNewerVersion
-
getOlderVersion
-
getReleaseRepository
-
setReleaseRepository
-
bump
-
getVersion
-
getExports
- Throws:
Exception
-
getVersion
-
getBsn
-
bumpBundle
-
getBundleInfo
-