Tool for validating apache velocity template files
2016-08-23
0 0 0
暂无评分
其他
如何获取积分?
Project moved to Github: https://github.com/todvora/velocity-validator
Java tool for validating apache velocity templates
Purpose
Simple validation tool for detecting bugs in Apache Velocity templates. It iterates thru directories and validates every .vm file. Errors are printed with filename, error and possible solutions.
Usage
java -jar velocityvalidator.jar path\_to\_templates `[`-rules=path\_to\_config\_file`]` `[`-verbose`]`
path_to_tempates = root directory, where starts detection of templates, it will crawl recursive thru whole subtree of directories
path\_to\_config\_file = not mandatory, file, on every line new java regular expression of illegal input.
For example #foreach(.`*` as .`*`)
[
correct one is #foreach(.*
in .*
)]
Examples of incorrect templates
Toolforvalidatingapachevelocityte
mplatefiles
相关源码推荐
暂无评论