apache / daffodil-sbt

Apache Daffodil SBT Plugin
https://daffodil.apache.org/
Apache License 2.0
1 stars 3 forks source link

Documentation for building saved parsers/testing daffodil version without updating build.sbt #54

Open stevedlawrence opened 1 month ago

stevedlawrence commented 1 month ago

It's often useful to build a saved parser or run tests for a specific version of Daffodil without having to update build.sbt (e.g. for temporary testing). The best way to do this is with these shell commands:

Run tests

sbt \
  'set daffodilVersion := "X.Y.Z"' \
  'set daffodilPackageBinVersions := Seq("X.Y.Z")' \
  test

Build saved parser

sbt \
  'set daffodilPackageBinVersions := Seq("X.Y.Z")' \
  packageDaffodilBin

These commands are very useful but not commonly known. We should add them to the README so it's documented in a place where people are likely to look.