Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EglTask broken?
EglTask broken? [message #588482] Wed, 21 April 2010 08:54
Steffen Zschaler is currently offline Steffen Zschaler
Messages: 228
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: Sat Aug 30 14:42:14 EDT 2014

Powered by FUDForum. Page generated in 0.01624 seconds