Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EglTask broken?
EglTask broken? [message #588482] Wed, 21 April 2010 12:54
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 266
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030409060407040905000901
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Louis, Dimitrios,

I'm probably doing something really stupid, but I have a problem using
EGL from an ANT workflow. I have the following task invocation:

<epsilon.egl src="templates/BlockFactory.egl"
target="${dir}/tetris/BlockFactory.java">
<model ref="tetris" as="Tetris" />
</epsilon.egl>


But instead of simply loading the template and generating to the
specified file, I get the following exception:

java.lang.ClassCastException: java.lang.String cannot be cast to org.eclipse.epsilon.egl.EglFileGeneratingTemplate
at org.eclipse.epsilon.workflow.tasks.EglTask.examine(EglTask.j ava:32)
at org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask.exec uteImpl(ExecutableModuleTask.java:118)
at org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
...


Now, I know that the whole template and target handling of EglTask has
recently been overhauled quite a bit, so I just wonder whether this
might simply be a regression somewhere? Or is there something I'm missing?

Cheers,

Steffen

--------------030409060407040905000901
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Louis, Dimitrios,<br>
<br>
I'm probably doing something really stupid, but I have a problem using
EGL from an ANT workflow. I have the following task invocation:<br>
<blockquote>
<pre>&lt;epsilon.egl src="templates/BlockFactory.egl"
target="${dir}/tetris/BlockFactory.java"&gt;
&lt;model ref="tetris" as="Tetris" /&gt;
&lt;/epsilon.egl&gt;
</pre>
</blockquote>
But instead of simply loading the template and generating to the
specified file, I get the following exception:<br>
<blockquote>
<pre>java.lang.ClassCastException: java.lang.String cannot be cast to org.eclipse.epsilon.egl.EglFileGeneratingTemplate
at org.eclipse.epsilon.workflow.tasks.EglTask.examine(EglTask.j ava:32)
at org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask.exec uteImpl(ExecutableModuleTask.java:118)
at org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
...
</pre>
</blockquote>
Now, I know that the whole template and target handling of EglTask has
recently been overhauled quite a bit, so I just wonder whether this
might simply be a regression somewhere? Or is there something I'm
missing?<br>
<br>
Cheers,<br>
<br>
Steffen<br>
</body>
</html>

--------------030409060407040905000901--
Previous Topic:Using resource factories
Next Topic:EglTask broken?
Goto Forum:
  


Current Time: Fri Apr 19 17:07:22 GMT 2024

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

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

Back to the top