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) InstructionsHeaders that are considered major enough to parse according to spec and compare their constituentsprivate static final PatternCreate an element representing all resources in the JARHeaders that have values that should be sorted -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ElementbundleElement(Analyzer analyzer) Create an element representing a bundle from the Jar.deserialize(Tree.Data data) private booleanprivate ElementmanifestElement(Manifest manifest) Create an element for each manifest header.private ElementresourcesElement(Analyzer analyzer) voidsetIgnore(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 -
META_INF_P
Create an element representing all resources in the JAR
-
-
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
- Throws:
Exception
-
hasSource
- Throws:
Exception
-
manifestElement
Create an element for each manifest header. There areIGNORE_HEADERSandMAJOR_HEADERSthat will be treated differently.- Parameters:
manifest-- Returns:
- the created
Element
-
deserialize
- Specified by:
deserializein interfaceDiffer- Throws:
Exception
-
setIgnore
-
setIgnore
-