[ http://issues.apache.org/jira/browse/VELOCITY-440?page=all ]
     
Nathan Bubna resolved VELOCITY-440:
-----------------------------------

    Resolution: Invalid

This problem has been solved in Velocity for many years.  You can configure 
Velocity to search across multiple resource loaders and most resource loader 
implementations (FileResourceLoader, JarResourceLoader, and VelocityTools' 
WebappLoader) support multiple paths individually as well.

In your case, i'd recommend configuring the default FileResourceLoader with the 
multiple paths you want it to search and add a ClasspathResourceLoader to load 
your macros from the jar.

Please read:
http://jakarta.apache.org/velocity/docs/developer-guide.html#Configuring%20Resource%20Loaders

> Make TEMPLATE_ROOT behave more like classpath...that is a list of directories 
> to search.
> ----------------------------------------------------------------------------------------
>
>          Key: VELOCITY-440
>          URL: http://issues.apache.org/jira/browse/VELOCITY-440
>      Project: Velocity
>         Type: Improvement

>   Components: Build
>     Versions: 1.4
>  Environment: WindowsXP
>     Reporter: Colbert Philippe
>     Priority: Minor

>
> I want to use Velocity as a standard preprocessor for many programming 
> languages or configuration files.   By using it this way, I can build a 
> library of Velocity macros that I can callup whenever I want.   I want to be 
> able to have macros located in different directories.   So the TEMPLATE_ROOT 
> should be a list of directories that is searched by Velocity to find the 
> first macro file needed.
> There also a need to have some macros archived in the Jar.   So a unified 
> solution for having macros dispersed in a list of directories and insided the 
> JAR file (in the real classpath).
> This would go a long way to improve Velocity.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to