You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Thomas Singer <th...@regnis.de> on 2002/06/18 10:54:27 UTC

Create Java method for velocity engine

Hello,

I wrote a mini Java program that parses all vm files in a directory and 
creates static html files (my website) out of it (I know, not very 
sensational).

Now I want to use need a Java function that returns the string 
representation of a file's size ( String getFileSize(String 
relativeFileName) ). What would be the easiest way to tell this to the 
VelocityEngine?

Best regards,
Tom


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>