|
Re: XPand2 / MWE: Load file for XPand generator from outside the Java classpath? [message #898595 is a reply to message #898051] |
Thu, 26 July 2012 18:49 |
|
Xpand is using an instance of org.eclipse.xtend.expression.ResourceManager to locate resources (i.e. Xpand/Xtend templates) by qualified name. By default AbstractExpressionUsingWorkflowComponent#getResourceManager (Xpand's Generator component derives from it) instantiates an instance of org.eclipse.xtend.expression.ResourceManagerDefaultImpl, which loads resources by accessing ResourceLoaderFactory#createResourceLoader(). The implementation of ResourceLoader to instantiate can be passed as System property "org.eclipse.emf.mwe.core.resources.ResourceLoader", or derive ResourceManagerDefaultImpl and set it to the Generator component.
Kind regards,
~Karsten
Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02192 seconds