On Feb 29, 2012, at 10:36 PM, Paul Libbrecht wrote:

> Hello fellow developers,
> 
> please let me insist here.
> What kind of tool is available out there to analyze velocity sources?

None that I know of (haven't googled though). Ludovic had created a velocity 
javadoc tool to document velocimacros (velocidoc) but that's the only one I 
know of.

> I tried going by hand through all the macros of just macros.vm and this is 
> porky long and Curriki has about 100 times this.
> A tool to detect (in this case) calls to the set directive on a variable name 
> that is a parameter would really be useful!
> 
> I'd have enough with an access to some structure tree given a .vm 
> input-stream.

Since Velocity is based on a javacc parser there might be possibilities to 
access the internal structure tree.

-Vincent

> thanks in advance
> 
> paul
> 
> 
> Le 4 janv. 2012 à 12:16, Paul Libbrecht a écrit :
>>> 2) please point me to such code, we have quite a few other maintenance 
>>> needs for the velocity code and tool-supporting this would be really 
>>> helpful!
>> 
>> This remains an interesting open question.
>> I know we have quite a few other velocity analysis needs (e.g. the fact that 
>> some calls to msg.get are not sufficiently escaped for some languages).

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to