velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: How to tell which File Resource Loader Prefix was used?
Date Fri, 04 Jan 2008 22:51:27 GMT
I'm not aware of any way to do that with just one loader.  You could
try using a separate file resource loader for each root instead of one
for multiple roots.

On Jan 3, 2008 10:07 AM, White, Tim <Tim.White@qwest.com> wrote:
> Hi there -
>
>  For debugging purposes, I'd like to be able to log which File Resource
> Loader root was used to locate a template.
>
>  I'm doing this now:
>
> myTemplate.getResourceLoader().getClassName()
>
> This gets me the name of the loader that was used, but is there any way
> to get the root that was used?
>
> Thanks!
>
> Tim
>
>
>
>
> This communication is the property of Qwest and may contain confidential or
> privileged information. Unauthorized use of this communication is strictly
> prohibited and may be unlawful.  If you have received this communication
> in error, please immediately notify the sender by reply e-mail and destroy
> all copies of the communication and any attachments.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message