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 li开发者_如何学Pythonne 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
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.
精彩评论