Hi list (or probably rather Mike ;-),

I am trying to get the year string automatically into my velocity project 
templates. I found two related JIRAs 
(http://issues.objectstyle.org/jira/browse/WOL-755, 
http://issues.objectstyle.org/jira/browse/WOL-1159) that are unresolved yet. 
Apart of the velocity variable ${Date) that was mentioned on this list and that 
returns a plain string of the long formatted timestamp which of course lacks 
date specific methods (e.g. in my case ${Date.get('yyyy')} to get '2010') I 
could not find any way to achieve my goal.
I am going with the temporary hack now to get to it by extracting a substring: 
${Date.substring(6,10)} but that smells fishy. I think it would be very helpful 
to add the GenericTools from the VelocityTools 
(http://velocity.apache.org/tools/devel/generic.html) for the processing of 
EOGenerator-, EOModelDoc- and WOLips Project-templates as this adds a bunch of 
useful classes.

Any thoughts on this?

jw

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to