Problem with providing variable to template [message #839869] |
Mon, 09 April 2012 06:19  |
Eclipse User |
|
|
|
I am trying to add variables (input parameters) to my EGLTemplate:
EglFileGeneratingTemplateFactory factory = new EglFileGeneratingTemplateFactory();
factory.getContext().getFrameStack().put(new Variable("outputLocation", outputLocation, EolPrimitiveType.String));
EglTemplate template = factory.load(getEntry());
template.process();
When I check the type of 'outputLocation' in my egl file (grabbed from getEntry() earlier), its type is unset. This code returns 'Type: ' instead of 'Type: String' (or something similar):
("Type: " + outputLocation.type()).println();
So, obviously my next statement t.generate(outputLocation); goes wrong as it expects a String for the location parameter. (Changing it to t.generate(outputLocation + ""); 'solves' my problem)
Is this a bug that I should report, or am I doing something wrong here?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07145 seconds