You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "White, Tim" <Ti...@qwest.com> on 2008/01/03 19:07:42 UTC

How to tell which File Resource Loader Prefix was used?

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.

Re: How to tell which File Resource Loader Prefix was used?

Posted by Nathan Bubna <nb...@gmail.com>.
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 <Ti...@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