开发者

Is it possible to use ant's antlr task to do code generation with stringtemplate?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜