Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Different execution: Ant Task and Launch Configuration?
Different execution: Ant Task and Launch Configuration? [message #1017617] Tue, 12 March 2013 08:09 Go to next message
Antonio Moreno is currently offline Antonio MorenoFriend
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 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
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
Re: Different execution: Ant Task and Launch Configuration? [message #1017748 is a reply to message #1017663] Tue, 12 March 2013 13:26 Go to previous message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
Hello,

To complement Ed's answer, note that you can also chain your ATL transformations by running them programmatically in Java: http://wiki.eclipse.org/ATL/Developer_Guide#Examples_of_use_.28run_ATL_transformations_in_Java.29.

Best regards,

Hugo


--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Previous Topic:"at" operation with ordered set
Next Topic:Use of ATL
Goto Forum:
  


Current Time: Wed Apr 24 23:03:29 GMT 2024

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

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

Back to the top