Hi Manish, > We have several velocity templates developed by many developers in last few > months. > We have used application.properties to get all the messages, labels, text > etc, however there might be few sting literals still existing in those > templates. > I was wondering if there was any way of having an automated test to find > string literals in velocity templates. Is there any?
Trying to get what you want to do... (Are you using Struts, maybe?) Do you mean like if you had a template like this: Hello $text.get("user.name"), You have been selected out of millions to blah, blah, blah. Then you want to be let known about the "Hello" and "You have been..." parts? If so, I think you can do it by hacking o.a.v.runtime.parser.node.ASTText#init(). Best regards, -- Shinobu -- Shinobu "Kawai" Yoshida <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]