Different execution: Ant Task and Launch Configuration? [message #1017617] |
Tue, 12 March 2013 08:09 |
Antonio Moreno Messages: 16 Registered: November 2012 |
Junior Member |
|
|
Hi,
I need chaining six transformations, and so far as I know, I have to use Ant Tasks.
I have some success experiences with ant tasks to run ATL transformations but now have a problem:
- When I run the transformation across the right-click and picking 'Run'. Then I populate the models in the pop-up and finally it's execute correctly and without errors, generating the output succesfully.
- When I run the Ant Task with the same path/uris for the models, it returns a error in a specific line of ATL.
The atl virtual machine to execute it, is the same (EMF-specific VM).
The error has sense. I try to access to a Class with an attributte name by a EReference of type EObject, without any type of cast. Namely, I have a class A with a EReference of type EObject. The class B has an attributte name. The EReference of A, in the model, points to a instance of B.
My main problem is: why the ant task has problem, and the regular launch not?
This is a sketch of my Ant Task:
<target name="transformationThroughput" depends="LoadThroughputModelsWeaveMM">
<property name="atl.launcher" value="EMF-specific VM"/>
<atl.launch path="Transformations/WeaveMetaModels.asm">
<option name="allowInterModelReferences" value="true"/>
I'm developing it in Eclipse Juno and ATL Plugin 3.4.0
Thank you so much!
Regards,
Antonio
|
|
|
Re: Different execution: Ant Task and Launch Configuration? [message #1017663 is a reply to message #1017617] |
Tue, 12 March 2013 09:32 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
Allow me to strongly recommend using MWE2 rather than ANT for modeling
chains.
itemis provide many relevant MWE2 components. You may find many more in
other projects, particularly org.eclipse.ocl.examples.build.
Regards
Ed Willink
On 12/03/2013 08:09, Antonio M. Moreno wrote:
> Hi,
>
> I need chaining six transformations, and so far as I know, I have to
> use Ant Tasks.
>
> I have some success experiences with ant tasks to run ATL
> transformations but now have a problem:
> - When I run the transformation across the right-click and picking
> 'Run'. Then I populate the models in the pop-up and finally it's
> execute correctly and without errors, generating the output succesfully.
> - When I run the Ant Task with the same path/uris for the models, it
> returns a error in a specific line of ATL.
>
> The atl virtual machine to execute it, is the same (EMF-specific VM).
>
> The error has sense. I try to access to a Class with an attributte
> name by a EReference of type EObject, without any type of cast.
> Namely, I have a class A with a EReference of type EObject. The class
> B has an attributte name. The EReference of A, in the model, points to
> a instance of B.
> My main problem is: why the ant task has problem, and the regular
> launch not?
>
>
> This is a sketch of my Ant Task:
>
> <target name="transformationThroughput"
> depends="LoadThroughputModelsWeaveMM">
> <property name="atl.launcher" value="EMF-specific VM"/>
> <atl.launch path="Transformations/WeaveMetaModels.asm">
> <option name="allowInterModelReferences" value="true"/>
>
>
> I'm developing it in Eclipse Juno and ATL Plugin 3.4.0
>
> Thank you so much!
>
> Regards,
> Antonio
|
|
|
|
Powered by
FUDForum. Page generated in 0.03050 seconds