[AM3] Cannot install AM3 for ATL3 plugins correctly [message #512115] |
Wed, 03 February 2010 18:23  |
Eclipse User |
|
|
|
Hi,
I have retrieved the AM3 source code from SVN. I get an error once eclipse attemots to build as follows:
ATLUtils.java has the following error:
modelFactory = CoreService.getModelFactory("EMF");
I resolved the error temporarily by using the deprecated method, createModelFactory. I'm sure this isn't the ideal solution. Did nyone else get this?
Even with this fix in place the plugins do not function as everytime I try to run an ant script with AM3 tasks it in they are not recognised. They error is as follows:
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.
I have set the ant build to run in the same JRE.
I am running Eclipse 3.5, ATL3.1 and EMF 2.5 on WIndows VIsta.
Any help is appreciated.
Regards,
Ronan
|
|
|
|
|
|
|
|
|
|
|
Re: [AM3] Cannot install AM3 for ATL3 plugins correctly [message #579708 is a reply to message #579357] |
Thu, 29 April 2010 12:48  |
Eclipse User |
|
|
|
Ronan wrote on Wed, 10 February 2010 09:19
> Hi,
> Thanks, okay great we got it working. There are three things to learn.
> 1. The ATL ant tasks should be used not the AM3 ones.
> 2. The injector name should be in capital letters unlike the previous version, so try <injector name="XML"/>
> 3. org.eclipse.m2m.atl.projectors.xml must be taken from SVN as well as the other projects.
> Thanks again!
> Ronan
I have the problem that started this thread. I'm trying to run the KML Injector on ATL Examples page, and I really need this working because I want to use the XML Injector for my MsT Thesis.
Since the new ATL ant tasks doesn't support XML Injector, am I stuck with AM3? If so, why can't I get past the "getModelFactory("EMF")" problem that started this thread? Even following the "AM3/How Install New AM3 From SVN" page, I can't run AM3 without getting the following error:
Error
> BUILD FAILED
> /Users/FASC/Documents/eclipseWorkspace/KMLInjector/build.xml :54: 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.
I REALLY need help!
Thank you!
Filipe Correia
|
|
|
Powered by
FUDForum. Page generated in 0.10163 seconds