Package org.fhirfrog.frog.ant.ig
Class SushiConfigReader
java.lang.Object
org.fhirfrog.frog.ant.ig.SushiConfigReader
Reads the
dependencies block from a sushi-config.yaml file.
Uses a simple line-by-line parser scoped to the dependencies section.
Only name: version entries under the dependencies: heading
are parsed; nested objects (parameter overrides) are ignored.
Handles both quoted and unquoted version values:
dependencies: hl7.fhir.au.core: 1.0.0 hl7.fhir.au.erequesting: "0.2.0"
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadDependencies(Path configPath) Parses thedependenciesblock from the given YAML file.
-
Constructor Details
-
SushiConfigReader
public SushiConfigReader()
-
-
Method Details
-
readDependencies
Parses thedependenciesblock from the given YAML file.- Parameters:
configPath- path tosushi-config.yaml- Returns:
- map of package name → version string
- Throws:
IOException- if the file cannot be readIllegalArgumentException- if the file does not exist
-