06-11-2010 06:33 AM
06-11-2010 07:09 AM
06-11-2010 08:04 AM
ClassLoader cl = Thread.currentThread().getContextClassLoader();
InputStream is = cl.getResourceAsStream("/alfresco/templates/foobar.ftl")
HTH06-11-2010 09:54 AM
06-11-2010 10:22 AM
06-11-2010 10:55 AM
SInce you may assume that both tomcat/shared/classes and alfresco/WEB-INF/classes are in the classpath, you can access them as resource.
Something like that (untested):HTHClassLoader cl = Thread.currentThread().getContextClassLoader();
InputStream is = cl.getResourceAsStream("/alfresco/templates/foobar.ftl")
Gyro
06-11-2010 11:54 AM
06-12-2010 01:39 AM
You probably want to load your script into the alfresco data dictionary rather than the file system.
06-12-2010 04:59 AM
06-13-2010 01:02 PM
You probably want to load your script into the alfresco data dictionary rather than the file system.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.