To add on to that, the following can be used to generate a new dfdl project layout using a template:
sbt new stevedlawrence/dfdl-project-layout.g8 It asks a couple questions about your format, then generates a project with skeleton files for the schema, TDML file, and scala test file. You can then run: sbt test to run the tests defined in the scala/tdml file. Information about the TDML format is at: https://daffodil.apache.org/tdml - Steve On 1/17/19 9:44 AM, Beckerle, Mike wrote: > Very nice schema Christofer. > > > I recommend adding tests in TDML so as to exercise these in your ordinary > unit test/regression using Daffodil. > > > This article: > > > https://daffodil.apache.org/dfdl-layout/ > > > explains the way we do this for sbt. Minor adaptations needed for maven I'm > sure. > > > ...mike beckerle > > > > > > ________________________________ > From: Christofer Dutz <[email protected]> > Sent: Thursday, January 17, 2019 9:21:51 AM > To: [email protected] > Subject: First success with modeling the message formats for the Siemens S7 > Protocol with Daffodil > > Hi all, > > I just wanted to report that after finishing a first version of my S7 dfdl, I > pretty quickly finished the 2 underlying protocols too. > > https://github.com/apache/incubator-plc4x/tree/develop/src/main/dfdl > > Next I will probably start with using daffodil for parsing/serializing > test-data for easy human inspection > (the XML or JSON files will be a lot easier to maintain as the PCAPNG files). > > Maybe I’ll even whip up a version of the S7 protocol based entirely on > daffodil so we can do a performance measurement. > However I expect to require more CPU time and memory using this path … > > As soon as I’m a little more familiar with it, I guess we could start the > discussion on some code-generation. > > Chris > >
