EGL broken by upgrade [message #536377] |
Thu, 27 May 2010 21:16 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Mark Tippetts![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=matippetts%40gmail.com) Messages: 25 Registered: July 2009 |
Junior Member |
|
|
Hello,
I have a number of EGL templates that worked fine until updating to 0.8.9. Operations (now marked with @template) produce no output. For example:
[%
inputAnt.println('InputAnt: ');
for (proj : AntProject in inputAnt.getAllOfType('AntProject')){%]
<project name="[%=proj.name%]" basedir="[%=proj.baseDir%]" default="[%=proj.default%]">
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
[% for (target : AntTarget in proj.element) {
target.emitTarget();
}%]
</project>
[%}
@template
operation AntTarget emitTarget() {
self.println('Emitting target ');
%]
<target>
</target>
[%}
%]
This code produces the following output:
<project name="EpsilonTools" basedir="." default="">
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
</project>
As you can see, the operation emitTarget() isn't emitting the targets.
Here's the console output, which shows the operations are being executed:
Buildfile: C:\Eclipse3.5\workspace\epsilontools.engine\design\Build.xml
GenerateBuildXML:
[epsilon.egl - GenerateBuildXML.egl] InputAnt: org.eclipse.epsilon.workflow.tasks.ModelReference@daa718
[epsilon.egl - GenerateBuildXML.egl] Emitting target epsilontools.ant.impl.AntTargetImpl@6a338e (propsFile: null, propsURL: null, propsResource: null) (name: TransformEcore2Logic, description: null)
...
[epsilon.egl - GenerateBuildXML.egl] Emitting target epsilontools.ant.impl.AntTargetImpl@31ebd9 (propsFile: null, propsURL: null, propsResource: null) (name: GenerateEngineConfiguration, description: null)
BUILD SUCCESSFUL
Total time: 766 milliseconds
I'm using the latest interim build, to address the bug in http://www.eclipse.org/forums/index.php?t=msg&th=166758& amp;start=0&
Is this another regression, or is there something I need to do besides adding the @template annotations?
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04311 seconds