Package aQute.bnd.differ
Class DiffPluginImpl
java.lang.Object
aQute.bnd.differ.DiffPluginImpl
- All Implemented Interfaces:
Differ
This Diff Plugin Implementation will compare JARs for their API (based on the
Bundle Class Path and exported packages), the Manifest, and the resources.
The differences are represented in a
Diff
tree.-
Field Summary
FieldsModifier and TypeFieldDescriptionHeaders that are considered not major enough to be considered(package private) Instructions
Headers that are considered major enough to parse according to spec and compare their constituentsHeaders that have values that should be sorted -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Element
bundleElement
(Analyzer analyzer) Create an element representing a bundle from the Jar.deserialize
(Tree.Data data) private boolean
private Element
manifestElement
(Manifest manifest) Create an element for each manifest header.private Element
resourcesElement
(Analyzer analyzer) Create an element representing all resources in the JARvoid
setIgnore
(Parameters diffignore) void
-
Field Details
-
MAJOR_HEADERS
Headers that are considered major enough to parse according to spec and compare their constituents -
IGNORE_HEADERS
Headers that are considered not major enough to be considered -
ORDERED_HEADERS
Headers that have values that should be sorted -
localIgnore
Instructions localIgnore
-
-
Constructor Details
-
DiffPluginImpl
public DiffPluginImpl()
-
-
Method Details
-
tree
- Throws:
Exception
- See Also:
-
tree
-
tree
-
bundleElement
Create an element representing a bundle from the Jar.- Throws:
Exception
-
resourcesElement
Create an element representing all resources in the JAR- Throws:
Exception
-
hasSource
- Throws:
Exception
-
manifestElement
Create an element for each manifest header. There areIGNORE_HEADERS
andMAJOR_HEADERS
that will be treated differently.- Parameters:
manifest
-- Returns:
- the created
Element
-
deserialize
- Specified by:
deserialize
in interfaceDiffer
- Throws:
Exception
-
setIgnore
-
setIgnore
-