[ 
https://issues.apache.org/jira/browse/VELOCITY-527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12479778
 ] 

Will Glass-Husain commented on VELOCITY-527:
--------------------------------------------

You might consider using the FileResourceLoader (or one of the other resource 
loaders) instead of Velocity.evaluate().  There's a huge performance benefit 
due to the use of caching.  (assuming you are repeatedly evaluating the files).


> Name of template truncated in error messages
> --------------------------------------------
>
>                 Key: VELOCITY-527
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-527
>             Project: Velocity
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: Windows XP Pro SP2, JDK 1.5
>            Reporter: Michael Giroux
>
> Following was posted to mailing list:
> On 3/9/07, Will Glass-Husain <[EMAIL PROTECTED]> wrote:
> > Ouch.  Always hate that first bug report after a new release!
> > 
> > Would you mind please creating a JIRA issue at:
> > http://issues.apache.org/jira
> > 
> > On 3/9/07, Michael Giroux <[EMAIL PROTECTED]> wrote:
> > > I just upgraded to Velocity 1.5.  A key feature for me is the new
> > > functionality to include filename, line and column in error messages.
> > > When I was testing this feature with a faulty template, I discovered
> > > that the filename is being truncated. In the error message below, the
> > > actual file name should be "business-service-interface.vm"  It appears
> > > the parser truncated at the first "-".
> > >
> > >
> > > java.lang.Exception: Encountered "#else" at line 51, column 33 of business
> > > Was expecting one of: ...
> > >
> > >
> > > Michael:
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > 
> > 
> > --
> > Forio Business Simulations
> > 
> > Will Glass-Husain
> > [EMAIL PROTECTED]
> > www.forio.com
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to