I'm using Velocity to generate Java code. If the generated code has a compilation error, and if the problem is in the template (as opposed to in the Context), it's convenient to flag the problem's location in the template itself. The mapping is required to do that.
-- Rich > Date: Mon, 4 Jan 2010 03:43:07 -0800 > From: [email protected] > To: [email protected] > Subject: Re: Easiest way to map output line numbers to resource (e.g. > template) line numbers? > > > Why do you want to do that? > > > Rich Wagner-3 wrote: >> >> I need to generate a mapping from output line numbers back to the >> corresponding resource filenames and line numbers. What's the easiest way >> to do that? >> ... >> > > -- > View this message in context: > http://old.nabble.com/Easiest-way-to-map-output-line-numbers-to-resource-%28e.g.-template%29-line-numbers--tp26988546p27011853.html > Sent from the Velocity - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > _________________________________________________________________ Hotmail: Powerful Free email with security by Microsoft. http://clk.atdmt.com/GBL/go/171222986/direct/01/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
