Would be an useful utility class: DateTool (and maybe a random generator)
Hello
thank you very much for sharing and maintaining your great work!, It's always great to start the CodeGenerator and let the magic happen 😄. I use it for projects for non-profit organizations.
Maybe it would not be so complicated for you to include one or two tools classes for velocity in the next update, therefore I ask:
- It would be very handy if we could work with dates in Velocity, so it would be great if you could include the DateTool class as a tool: https://velocity.apache.org/tools/devel/apidocs/org/apache/velocity/tools/generic/DateTool.html
- A random generator would also be ingenious, e.g. to generate GUIDs, but for us, this is secondary.
I tried to make the change in a fork myself and then return it as a merge request, but after about 4 hours of reading and experimenting I still couldn't get the project to compile (probably because of my slightly outdated IntelliJ version) 😞 - I guess it's much easier for you.
It would be great if you could add to these tools at some point.
Thanks a lot, kind regards, Thomas
I have forked the codes and add the support of velocity tools.
Check it here: https://github.com/Haixing-Hu/CodeGenerator/tree/v1.7.1
- clone the source from https://github.com/Haixing-Hu/CodeGenerator/tree/v1.7.1
- switch to the v1.7.1 tag
- build the source with the command
gradlew build. - find the distribution package at
build/distributions/CodeGenerator-1.7.1.zip - In IDEA Intellij's plugin page, install the plugin from local disk.