The code generation scripts genArrayMath.sh and genArrayUtil.sh are becoming unmanageable. In particular the resultant .java files need associated unit tests, but construction of these will be painful using the current system. Further, it is not fitting with the maven best practice to include generation scripts within the /src/main/java hierarchy.
There seems to be three major contenders in the Java templating for code generation field:
- Velocity
- Apache project.
- Largest user-base, probably because of the previous point.
- Freemarker
- Alleged to be faster, not that I care about that for this use-case.
- StringTemplate
- MVC nazis, but possibly in a good way. Will require doing things properly or not at all.
- Used by ANTLR parser generator, so obviously it copes well with source generation.
Over all there doesn't seem to be a huge amount of difference between these libraries.
The code generation scripts
genArrayMath.shandgenArrayUtil.share becoming unmanageable. In particular the resultant.javafiles need associated unit tests, but construction of these will be painful using the current system. Further, it is not fitting with the maven best practice to include generation scripts within the/src/main/javahierarchy.There seems to be three major contenders in the Java templating for code generation field:
Over all there doesn't seem to be a huge amount of difference between these libraries.