The file you need to edit is:

  daffodil-propgen/src/main/resources/org/apache/daffodil/xsd/dafext.xsd

All other occurrences are simply copies of this file made during the sbt build 
process:

  daffodil-lib/resource_managed/main/org/apache/daffodil/xsd/dafext.xsd
  daffodil-lib/target/scala-2.12/classes/org/apache/daffodil/xsd/dafext.xsd
  daffodil-propgen/target/scala-2.12/classes/org/apache/daffodil/xsd/dafext.xsd

You don't have to invoke any generator manually.  Simply type "sbt compile" and 
sbt will run the generators as needed, ensuring that WarnIdGen.scala is 
regenerated from dafext.xsd when necessary.

-----Original Message-----
From: Larry Barber <larry.bar...@nteligen.com> 
Sent: Monday, January 11, 2021 11:51 AM
To: dev@daffodil.apache.org
Subject: EXT: Generating WarnIdGen.scala

I need to add a new warning message, but this is at the top of the file 
WarnIdGen.scala:

////////////////////////////////////////////////////////////////////////////////////////////
//
// Generated Code - Do not hand modify!
//
// This file is entirely generated code created from the // XML Schema files 
that describe Daffodil configuration files.
//
// Don't edit this. Go fix the generator to create what you need instead.
//
////////////////////////////////////////////////////////////////////////////////////////////

It looks like the file I need to update is dafext.xsd, but there seem to be two 
copies of this: one under main and the other under resources.

I also don't know how to invoke the generator - is there any additional 
documentation on this somewhere?

Reply via email to