Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2m-atl-dev] Ant not creating am3 tasks

Freddy

I have not checked the example you mention, but I think you can create
a new ANT build.xml file to run the example using the ATL tasks
instead the AM3 tasks.

== Two sets of ANT Tasks

Realted to ATL, there are two sets of ANT tasks...

- The AM3 (AMMA) tasks
    http://wiki.eclipse.org/AM3_Ant_Tasks
- and the ATL tasks
    http://wiki.eclipse.org/ATL/User_Guide_-_The_ATL_Tools#ATL_ant_tasks

ATL was originally integrated to AM3 and several examples include
build.xml files using the AM3 tasks. However, if you want to use these
tasks, you must install the AM3 plugins.

I think you can replace the AM3 tasks for ATL tasks (check the above links)
  - e.g. instead of using "am3.loadModel" you can use "atl.loadModel"



On Sat, Jul 20, 2013 at 12:57 AM, Freddy Brasileiro
<freddybrasileiro@xxxxxxxxx> wrote:
> Hello!
>
> I'm new in ATL and I'm trying to use the OCL2SWRL transformation
> (http://www.eclipse.org/atl/usecases/SharingRulesBetweenOCLUML_SWRLOWL/),
> but I'm having problems. When I try to run the ant file, the command
> am3.loadModel give me an exception:
>
> BUILD FAILED
> ...\OCL2SWRL.xml:103: Problem: failed to create task or type am3.loadModel
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any <presetdef>/<macrodef> declarations have taken place.
>
> The line with error is in sequence:
> <am3.loadModel modelHandler="MDR" name="XML" metamodel="MOF"
> path="${xmlPath}XML.xmi" />
>
> The problem is similar to the problem described in this thread
> (http://dev.eclipse.org/mhonarc/lists/m2m-atl-dev/msg00036.html). But I'm
> not getting the solution.
>
> Could you help me?
>
> Thanks,
>
> Abraço,
> Freddy Brasileiro Silva
> ________________________________________
> Graduando em Ciência da Computação - UFES
> gmail/gtalk: freddybrasileiro@xxxxxxxxx
> skype: freddybrasileiro
> (27) 9997-5106
>
> _______________________________________________
> m2m-atl-dev mailing list
> m2m-atl-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2m-atl-dev
>



-- 
8-)
Jaime Chavarriaga


Back to the top