[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmt.amw] Re: Injecting from ATL to Ecore using ANT

Hi,

The extractors and injectors have different behaviors. The injectors need the lexers/parsers classes.

You should use "ATL" in the name of the parameter, so the plug-in uses the correct class name (ATL_ANTLR3Lexer). The ATL injector is available in the ATL_parser.jar in the "ATL engine" plug-in.

Marcos.

Ronan wrote:
Hi,
I'm having problems automating the injection of an ATL file to an ATL Ecore model. My task is as follows...


<am3.loadModel modelHandler="EMF" name="atlModel" metamodel="ATL" ath="transform.atl">
<injector name="ebnf">
<param name="name" value="ATL_TCS" />
</injector>
</am3.loadModel>


The problem I think is in the value attribute of property. Everything I try causes the following exception
java.lang.ClassNotFoundException: org.eclipse.gmt.tcs.injector.ATL_TCS_ANTLR3Lexer
Obviously this class doesn't exist as it is related to the names I gave to one of my metamodels. I have tried a number of different value options. All corresponding to loaded metamodels.
I have the extractor working nicely as I followed the MantisBugzilla example.
Thanks,
Ronan