That's much nicer. Isn't entirely automated but helps avoid misdirection. On Tue, Apr 28, 2015 at 2:36 PM, Jinfeng Ni <j...@apache.org> wrote:
> Seems we could use FreeMarker special variable to add the template name (or > any other addition information) in the generated source code. See [1]. > > Add the following line to the template will be sufficient for that purpose. > > // Source code generated using FreeMarker template ${.template_name} > > > [1]. http://freemarker.org/docs/ref_specvar.html > > > On Tue, Apr 28, 2015 at 8:52 AM, Ted Dunning <ted.dunn...@gmail.com> > wrote: > > > On Tue, Apr 28, 2015 at 8:48 AM, Jacques Nadeau <jacq...@apache.org> > > wrote: > > > > > > > > > > >> At minimum, we need put the "template file name" in the comment > > > > > > > > > I actually disagree with this. I'm sure there is a programmatic way to > > > solve this rather than trying to maintain this by hand in. > > > > > > > > > He didn't say he wanted to put the file name in by hand. > > > > Sounds like you agree about intent and only possibly disagree about > method. > > >