Closed GoogleCodeExporter closed 9 years ago
Hi,
Please attach your pptx + java main + pojo which causes the problem.
Thank's.
Regard's Angelo
Original comment by angelo.z...@gmail.com
on 30 Sep 2013 at 6:36
Not easy for me to separate out the sensitive code from the open unfortunately.
But as I'm comparing 0.9.7 to 0.9.8 and debugging through code, it appears that
0.9.7 includes XDocReportEntryResourceLoader in the initialization of
ResourceManager where 0.9.8 does not. I'm about to step further into the
RuntimeServices which feeds into the ResourceManager. I shall report back.
Original comment by jaysell...@gmail.com
on 30 Sep 2013 at 9:08
Found it, VelocityTemplateEngine changed.
0.9.7 auto-registers "resource.loader" in the getVelocityEngineProperties
method.
0.9.8 uses velocity.properties file that is passed in by the project/user/etc.
This method is no longer around:
public synchronized Properties getVelocityEngineProperties()
{
if ( velocityEngineProperties != null )
{
return velocityEngineProperties;
}
velocityEngineProperties = new Properties();
// Initialize properties to use XDocReportEntryResourceLoader to
// load template from entry name of XDocArchive.
velocityEngineProperties.setProperty( "resource.loader", "file, class, jar ,report" );
velocityEngineProperties.setProperty( "report.resource.loader.class",
XDocReportEntryResourceLoader.class.getName() );
velocityEngineProperties.setProperty( "report.resource.loader.cache", "true" );
velocityEngineProperties.setProperty( "report.resource.loader.modificationCheckInterval", "1" );
.......
}
Original comment by jaysell...@gmail.com
on 30 Sep 2013 at 10:38
Many thank's to have debugging and find the problem.
Perhaps you have a custom velocity.properties in your classpath which disable
teh XDocReport resources loader.
I have commited a fix for that
http://code.google.com/p/xdocreport/source/detail?r=b07878fb1db6e35cfae3f58e421d
63f0bc732153
Tell me if it works with your case.
Regards Angelo
Original comment by angelo.z...@gmail.com
on 1 Oct 2013 at 8:51
Original comment by angelo.z...@gmail.com
on 18 Feb 2014 at 2:16
Issue 237 has been merged into this issue.
Original comment by angelo.z...@gmail.com
on 18 Feb 2014 at 2:16
Original issue reported on code.google.com by
jaysell...@gmail.com
on 30 Sep 2013 at 5:14