Yep. Note that if you really don't want to compile everything, you can run just the generator by running
sbt genManaged This is sometimes useful if you have an IDE that will do the compiling for you (e.g. Eclipse) and you just need the sbt generated stuff. But even then, we usually recommend that you run "sbt compile". For example, in the eclipse setup page, we say to use "sbt compile" along with a few other eclipse specific commands: https://cwiki.apache.org/confluence/display/DAFFODIL/Eclipse+Tricks+and+Notes Also, just for reference, the reason for these duplicate files is daffodil-progen is only used for generating various scala/xsd files. We don't actually distribute daffodil-propgen jar anywhere. Anything it generates ends up in either src_managed or resource_managed in the daffodil-lib project, which is what we actually distribute. And everything in "target" directories is just temporary staging for building the jars. On 1/11/21 12:08 PM, Interrante, John A (GE Research, US) wrote: > 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? >