Home » Modeling » Epsilon » EglTask broken?
EglTask broken? [message #528677] |
Wed, 21 April 2010 12:54 |
Steffen Zschaler 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><epsilon.egl src="templates/BlockFactory.egl"
target="${dir}/tetris/BlockFactory.java">
<model ref="tetris" as="Tetris" />
</epsilon.egl>
</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--
|
|
| |
Re: EglTask broken? [message #528681 is a reply to message #528678] |
Wed, 21 April 2010 13:14 |
Steffen Zschaler Messages: 266 Registered: July 2009 |
Senior Member |
|
|
Thanks for the quick reply. Here is the bug report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=309948
Cheers,
Steffen
On 21/04/2010 14:02, Dimitris Kolovos wrote:
> That's a regression indeed. Could you please file a bug and post the
> link here? This happens only when a target is specified in the
> epsilon.egl task so as a workaround you could remove the target and
> use another template to call your (now) main one and store its result
> from there.
>
> Cheers,
> Dimitris
>
> Steffen Zschaler wrote:
>> 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
>>
>
>
|
|
|
Re: EglTask broken? [message #528701 is a reply to message #528681] |
Wed, 21 April 2010 14:09 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Hi Steffen,
I've fixed this in the SVN and rolled out a new interim version
(v0.8.9.201004211415).
Cheers,
Dimitris
Steffen Zschaler wrote:
> Thanks for the quick reply. Here is the bug report:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=309948
>
> Cheers,
>
> Steffen
>
> On 21/04/2010 14:02, Dimitris Kolovos wrote:
>> That's a regression indeed. Could you please file a bug and post the
>> link here? This happens only when a target is specified in the
>> epsilon.egl task so as a workaround you could remove the target and
>> use another template to call your (now) main one and store its result
>> from there.
>>
>> Cheers,
>> Dimitris
>>
>> Steffen Zschaler wrote:
>>> 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
>>>
>>
>>
--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
|
|
| |
Re: EglTask broken? [message #588518 is a reply to message #528678] |
Wed, 21 April 2010 13:14 |
Steffen Zschaler Messages: 266 Registered: July 2009 |
Senior Member |
|
|
Thanks for the quick reply. Here is the bug report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=309948
Cheers,
Steffen
On 21/04/2010 14:02, Dimitris Kolovos wrote:
> That's a regression indeed. Could you please file a bug and post the
> link here? This happens only when a target is specified in the
> epsilon.egl task so as a workaround you could remove the target and
> use another template to call your (now) main one and store its result
> from there.
>
> Cheers,
> Dimitris
>
> Steffen Zschaler wrote:
>> 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
>>
>
>
|
|
|
Re: EglTask broken? [message #588528 is a reply to message #528681] |
Wed, 21 April 2010 14:09 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Hi Steffen,
I've fixed this in the SVN and rolled out a new interim version
(v0.8.9.201004211415).
Cheers,
Dimitris
Steffen Zschaler wrote:
> Thanks for the quick reply. Here is the bug report:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=309948
>
> Cheers,
>
> Steffen
>
> On 21/04/2010 14:02, Dimitris Kolovos wrote:
>> That's a regression indeed. Could you please file a bug and post the
>> link here? This happens only when a target is specified in the
>> epsilon.egl task so as a workaround you could remove the target and
>> use another template to call your (now) main one and store its result
>> from there.
>>
>> Cheers,
>> Dimitris
>>
>> Steffen Zschaler wrote:
>>> 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
>>>
>>
>>
--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
|
|
|
Goto Forum:
Current Time: Thu Nov 14 08:58:36 GMT 2024
Powered by FUDForum. Page generated in 0.04574 seconds
|