Ideally, this should be configurable via plugins because there is
simply no way to predict what people may come up with?

The relevant fragment from velocity is not even consistent -- look:

inputStream = 
getClass().getResourceAsStream("/org/apache/velocity/runtime/defaults/velocity.properties");
configuration.load(inputStream);
if(log.isDebugEnabled())
log.debug("Default Properties File: " + (new
File("org/apache/velocity/runtime/defaults/velocity.properties")).getPath());

So they use the '/' leading form to lookup the resource but they
report something else (and a file!, not a resource).

Dawid

On Sat, May 26, 2012 at 10:00 PM, Benson Margulies
<[email protected]> wrote:
> The problem here is that we need to relocate /a/b/c to /q/r/s.
> However, since relocations are stated in terms of a.b.c form and not
> path form, there's no syntax that maps.
>
> Unless, of course, a pattern of a.b.c -> q.r.s should just work for
> getClass().getResource("/a/b/c");
>
> It seems reasonable to me, but perhaps I'm missing something? Any
> thoughts from deep-shade thinkers would be helpful here.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to