Class FoundationDriftChecker
java.lang.Object
network.ike.plugin.scaffold.FoundationDriftChecker
Compare a project's POM against the IKE-foundation pins captured
in a scaffold manifest's
foundation: section (#345).
The scaffold zip embeds the parent + property values that
ike-tooling N saw as the latest-released at its release
moment. Picking up a newer scaffold means picking up that
tested-together compatibility snapshot. This class identifies the
deltas: where the consumer's POM lags behind, where it's ahead
(operator manually bumped), and where it's already in sync.
Pure-function — no I/O once a pomContent string is
provided. The checkPomFile(Path, ScaffoldManifest.Foundation) convenience reads from disk
for callers who want path-based access.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne drift comparison result.static enumClassification of a drift entry.static enumClassification of a drift entry's state. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<FoundationDriftChecker.Entry> check(String pomContent, ScaffoldManifest.Foundation foundation) Compute the drift between POM content and foundation pins.static List<FoundationDriftChecker.Entry> checkPomFile(Path pomFile, ScaffoldManifest.Foundation foundation) Compute the drift between a POM file's parent + properties and the scaffold manifest'sfoundation:pins.
-
Method Details
-
checkPomFile
public static List<FoundationDriftChecker.Entry> checkPomFile(Path pomFile, ScaffoldManifest.Foundation foundation) throws IOException Compute the drift between a POM file's parent + properties and the scaffold manifest'sfoundation:pins.- Parameters:
pomFile- path to the project's pom.xmlfoundation- the scaffold manifest's foundation pins; ifnull, returns an empty drift list- Returns:
- ordered list of
FoundationDriftChecker.Entryrecords, one per drifted or aligned property/parent comparison - Throws:
IOException- if the POM cannot be read
-
check
public static List<FoundationDriftChecker.Entry> check(String pomContent, ScaffoldManifest.Foundation foundation) Compute the drift between POM content and foundation pins.- Parameters:
pomContent- the POM XML as a stringfoundation- the foundation pins (non-null)- Returns:
- ordered drift entries
-