Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EGL broken by upgrade
EGL broken by upgrade [message #589410] Thu, 27 May 2010 21:16 Go to next message
Mark Tippetts is currently offline Mark TippettsFriend
Messages: 25
Registered: July 2009
Junior Member

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="[]" basedir="[%=proj.baseDir%]" default="[%=proj.default%]">
<taskdef resource="net/sf/antcontrib/"/>
[% for (target : AntTarget in proj.element) {


operation AntTarget emitTarget() {
self.println('Emitting target ');


This code produces the following output:

<project name="EpsilonTools" basedir="." default="">
<taskdef resource="net/sf/antcontrib/"/>

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

[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)
Total time: 766 milliseconds

I'm using the latest interim build, to address the bug in amp;start=0&

Is this another regression, or is there something I need to do besides adding the @template annotations?
Re: EGL broken by upgrade [message #589430 is a reply to message #589410] Fri, 28 May 2010 08:59 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Mark,

I'm sorry to hear you're having problems with EGL in 0.8.9. I think the following change to the EGL template should cause the ANT targets to be emitted:

[% for (target : AntTarget in proj.element) {


[% for (target : AntTarget in proj.element) { %]

@template operations return a string that should be output in the main template using a dynamic output section. Hence the [%= target.emitTarget() %] statement.

Prior to 0.8.9, @template operations had access to the main template and could be used without a dynamic output section. Though this was possible, it wasn't the intended semantics, and it's been "fixed" in 0.8.9.

I'll update the EGL documentation to describe how @template operations should be used and how they work. This is an area of EGL that we should describe more thoroughly.

Thanks for reporting this, and sorry once again for the confusion.

Previous Topic:[EuGENia] "Could not open the editor: assertion failed:"
Next Topic:EMF Compare-ECL integration
Goto Forum:

Current Time: Sun Jun 24 11:29:44 GMT 2018

Powered by FUDForum. Page generated in 0.02026 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top