[ http://issues.apache.org/jira/browse/VELOCITY-441?page=comments#action_12413499 ]
Nathan Bubna commented on VELOCITY-441: --------------------------------------- yeah, this would be a very handy little tool. I would have some use for it too. And it should actually be pretty easy to write too. My only thought is whether it wouldn't be better as part of VelocityTools. Anyway, if you or someone else doesn't beat me to writing it, i might take a stab at it one of these days. > Provide class to be called from command-line to translate any file with > special suffix. > --------------------------------------------------------------------------------------- > > Key: VELOCITY-441 > URL: http://issues.apache.org/jira/browse/VELOCITY-441 > Project: Velocity > Type: Improvement > Components: Build > Versions: 1.4 > Environment: WindowsXP > Reporter: Colbert Philippe > > This is a simple but important feature to have. To standadize the use of > Velocity, provide a class that can be called from the command-line that will > do the translation from *.vm ---> final-file. The class will look for any > file that has one of the special suffixes (specified by as parameters) and > will translate it. > The name convention for the translation would like this that: > someFileName.velocity ---> someFileName > someFileName.vm ---> someFileName > Example: > myFile.html.velocity ---> myFile.html > The user would specify the list of suffixes as parameter in Java (like > String[] suffixes = { ".velocity", ".vm" }. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
