Skip to content

Saved Parser Dependency with name #186

@stevedlawrence

Description

@stevedlawrence

The daffodilBin() function is used to access a published saved parser as a dependency, for example:

libraryDependencies ++= Seq(
  ("org.example" % "dfdl-fmt" % "1.0.0").daffodilBin(daffodilVersion.value)
)

But if saved parser was created and publish with a name, e.g.

packageDaffodilBinInfos := Seq(
  DaffodilBinInfo("/schema.dfdl.xsd", name = Some("messages"))
)

Then it is not possible to reference that saved parser using daffodilBin().

To fix this, the daffodilBin() function should be changed to take a name: Option[String] parameter that defaults to None, and if provided is used to get the saved parser that matches the name field in DaffodilBinInfo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions