Hi all
I have written a small tool that scanns velocity-files and extracts all
called variables. It's a command-line tool, you can execute it like this:
java -jar TemplateAnalyzer.jar folder1 folder2
In folder1 are your velocity files to analyze, in folder2 the tool will
generate velocity-files with the same name as in folder1 but only with the
accessed variables as content.
I made it an sourceforge project so you can view the code. You can find the
project here:
http://sourceforge.net/projects/vmanalyzer. I don't know if
anything like this already exists, I didn't find anything under sourceforge.
There are some things I would like to add in the future, like for example
recursively scanning the velocity-files, but for now I hope it can be of use
to you.
Simon Gubler