Hi everyone,
I have this plugin that can read a velocity template, but the template
must be in the classpath of the plugin to read it.
Now, I am trying to modify the plugin which it can able to read
templates from other projects. Any ideas?
From my components.xml, I already tried to change the classpath
resource loader path to a common path
--------------------------------------------------------------------------------
<plexus>
<components>
<component>
<role>org.codehaus.plexus.velocity.VelocityComponent</role>
<implementation>org.codehaus.plexus.velocity.DefaultVelocityComponent</implementation>
<configuration>
<properties>
<property>
<name>resource.loader</name>
<value>classpath</value>
</property>
<property>
<name>classpath.resource.loader.class</name>
<value>org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader</value>
</property>
<property>
<name>classpath.resource.loader.path</name>
<value>C:\templates</value>
</property>
</properties>
</configuration>
</component>
</components>
</plexus>
-------------------------------------------------------------------------------
But still no luck and the output is :
[ERROR] ResourceManager : unable to find resource
'C:\templates\template.vm' in any resource loader.
[INFO]
----------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------
[INFO] Reason: resource not found.
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Sep 30 09:54:22 CST 2005
[INFO] Final Memory: 5M/10M
[INFO]
----------------------------------------------------------------------------
I s there a way on to make the resource loader path to read from the
project and not from the plugin?
Thanks
-allan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]