Can I use the ant antlr task to generate code using stringtemplate?

Can I use the ant antlr task to generate code using the stringtemplate library? If not, is it better to just execute the java class from the command line into the gen w / stringtemplate code?

I found this link, which is close to what I want, but it's hard for me to install it correctly. For some reason, this library cannot see antlr. link text

+3
source share
1 answer

It depends on the complexity of the code you want to generate. In the case of our company, we have expanded org.apache.tools.ant.Task with generation logic for Java code. After that, both the task and the ant template files were packed into a jar file.

0
source

Source: https://habr.com/ru/post/1778193/


All Articles