Class BndBaseliner
java.lang.Object
org.jdrupes.builder.core.AbstractProvider
org.jdrupes.builder.core.AbstractGenerator
org.jdrupes.builder.bnd.AbstractBndGenerator
org.jdrupes.builder.bnd.BndBaseliner
- All Implemented Interfaces:
Generator, Renamable, ResourceProvider
A Generator that performs a baseline evaluation between two OSGi
bundles using the bndlib library bnd.
Because OSGi repositories never became popular, Maven repository
semantics are used to find the baseline bundle. The current bundle
is the library supplied by the project. The BndBaseliner evaluates
its Maven coordinates in the same way as the PomFileGenerator does.
From these, coordinates used to lookup the previous version are derived
in the form groupId:artifactId:[,version)
The BndBaseliner then performs the baseline evaluation. Instructions
-diffignore and -diffpackages are supported and forwarded to
bndlib.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoProvide(ResourceRequest<T> requested) Invoked byResourceProviderSpi.provide(ResourceRequest)after checking if the invocation is allowed.Ignore mismatches in the baseline evaluation.instruction(String key, String value) Add the instruction specified by key and value.instructions(Path bndFile) Add the instructions from the given bnd (properties) file.instructions(Map<String, String> instructions) Add the given instructions for the baseliner.Methods inherited from class AbstractBndGenerator
applyInstructionsMethods inherited from class AbstractGenerator
cleanup, name, newResource, project, toStringMethods inherited from class AbstractProvider
context, name, of, rename, vavrStream
-
Constructor Details
-
BndBaseliner
Initializes a new bnd baseliner.- Parameters:
project- the project
-
-
Method Details
-
instruction
Add the instruction specified by key and value.- Overrides:
instructionin classAbstractBndGenerator- Parameters:
key- the keyvalue- the value- Returns:
- the bnd baseliner
-
instructions
Add the given instructions for the baseliner.- Overrides:
instructionsin classAbstractBndGenerator- Parameters:
instructions- the instructions- Returns:
- the bnd baseliner
-
instructions
Add the instructions from the given bnd (properties) file.- Overrides:
instructionsin classAbstractBndGenerator- Parameters:
bndFile- the bnd file- Returns:
- the bnd baseliner
-
ignoreMismatches
Ignore mismatches in the baseline evaluation. When invoked, theBndBaselinerwill not set the faulty flag on theBndBaselineEvaluationif there are mismatches.- Returns:
- the bnd baseliner
-
doProvide
Description copied from class:AbstractProviderInvoked byResourceProviderSpi.provide(ResourceRequest)after checking if the invocation is allowed.- Specified by:
doProvidein classAbstractProvider- Type Parameters:
T- the generic type- Parameters:
requested- the requested- Returns:
- the stream
-