3

Is it possible to use ant's antlr task to do code generation with the stringtemplate library? If not, is it better to just execute a java class from command line to code gen w/ stringtemplate?

I've found this link which is close to what I want, but I am having a hard time setting this up properly. That library is not able to see antlr for some reason. link text

Tad Donaghe
  • 6,625
  • 1
  • 29
  • 64
Joyce
  • 1,431
  • 2
  • 18
  • 33

1 Answers1

0

It depends of the complexity of the code that you want to generate. In case of our company, we extended org.apache.tools.ant.Task with the generation logic for java code. After that, both ant task and template files were packaged in a jar file.

chech0x
  • 96
  • 7