Discussion:
[Middlegen-user] #parse directive loading templates from a jar/classpath
Dylan Etkin
2003-05-06 12:49:02 UTC
Permalink
Hi,
I am trying to create a plugin in which I use the #parse velocity
directive. I need to be able to access templates that are in the jar
generated for my plugin. I see that you can define the
RuntimeConstants.FILE_RESOURCE_LOADER_PATH property by setting the
mergedir property on the plugin but since KindFileResourceLoader extends
FileResourceLoader it doesn't know what to do with an url that is
describing a file that resides in a resource on the classpath.
My question is: Is there a mechanism that I am not seeing to do what I
need? And if not, is there a reason that KindFileResourceLoader should
not attempt to load the file from a FileResourceLoader and upon failure
try ClasspathResourceLoader like behavior?

Thanks,
Dylan
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.
Loading...