Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsProblem with epsilon.eol: Does not resolve referenced metamodels (Type 'Ecore!EPackage' not found)
https://www.eclipse.org/forums/index.php/mv/msg/165257/523489/#msg_523489
I'm trying to run an .eol file via Ant. I already made sure that it runs in
the sam JRE as Eclipse.
The eol script acts on an Ecore metamodel. Therefore, I'm using expressions
like "Ecore!EPackage.allInstances". However, when I run it, I get this
exception:
[epsilon.eol - adaptMetamodel.eol] EXCEPTION: Type 'Ecore!EPackage' not
found (C:\...\myproject\transformation\adaptMetamodel.eol@7:17)
[epsilon.eol - adaptMetamodel.eol] at
org.eclipse.epsilon.eol.execute.TypeExecutor.execute(TypeExe cutor.java:90)
[epsilon.eol - adaptMetamodel.eol] at
org.eclipse.epsilon.eol.execute.NameExecutor.execute(NameExe cutor.java:81)
[epsilon.eol - adaptMetamodel.eol] at
org.eclipse.epsilon.eol.execute.NameExecutor.execute(NameExe cutor.java:124)
[epsilon.eol - adaptMetamodel.eol] at
org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:185)
[epsilon.eol - adaptMetamodel.eol] at
org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointE xecutor.java:36)
[epsilon.eol - adaptMetamodel.eol] at
org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointE xecutor.java:123)
[epsilon.eol - adaptMetamodel.eol] at
org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:185)
[epsilon.eol - adaptMetamodel.eol] at
org.eclipse.epsilon.eol.execute.ForStatementExecutor.execute (ForStatementExecutor.java:44)
[epsilon.eol - adaptMetamodel.eol] at
org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:185)
[epsilon.eol - adaptMetamodel.eol] at
org.eclipse.epsilon.eol.execute.StatementBlockExecutor.execu te(StatementBlockExecutor.java:33)
[epsilon.eol - adaptMetamodel.eol] at
org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:185)
[epsilon.eol - adaptMetamodel.eol] at
org.eclipse.epsilon.eol.EolModule.execute(EolModule.java:57)
I believe the either the localModel or the eol task don't load the
underlying Ecore metametamodel, which my metamodel is based on. FYI, I can
successfully execute the eol script via an EOL runtime configuration, where
I configured the ecore model as input.
Any suggestions are appreciated.
Thanks, Christoph]]>Christoph Wienands2010-03-26T15:21:26-00:00Re: Problem with epsilon.eol: Does not resolve referenced metamodels (Type 'Ecore!EPackage' not foun
https://www.eclipse.org/forums/index.php/mv/msg/165257/587794/#msg_587794
the name I'm assigning while loading the model needs to be the same as when
I pass the model to the eol script.
Greetings, Christoph]]>Christoph Wienands2010-03-26T15:31:59-00:00Re: Problem with epsilon.eol: Does not resolve referenced metamodels (Type 'Ecore!EPackage' not foun
https://www.eclipse.org/forums/index.php/mv/msg/165257/523493/#msg_523493
the name I'm assigning while loading the model needs to be the same as when
I pass the model to the eol script.
Greetings, Christoph]]>Christoph Wienands2010-03-26T15:31:59-00:00Re: Problem with epsilon.eol: Does not resolve referenced metamodels (Type 'Ecore!EPackage' not foun
https://www.eclipse.org/forums/index.php/mv/msg/165257/587806/#msg_587806
Glad you got this working! FYI if you prefer to access the model using a
different name in your EOL program you can use the "as" attribute in
your <model> nested element i.e. <model ref="Ecore" as="SomeOtherName"/>
Cheers,
Dimitris
Christoph Wienands wrote:
> Never mind. I got a knot in my brain and mixed up model names. Obviously,
> the name I'm assigning while loading the model needs to be the same as when
> I pass the model to the eol script.
>
> <epsilon.emf.loadModel name="Ecore"
> modelfile="${basedir}/../model/fbx.ecore"
> metamodeluri="http://www.eclipse.org/emf/2002/Ecore" read="true"
> store="true" />
>
> <epsilon.eol src="adaptMetamodel.eol">
> <model ref="Ecore" />
> </epsilon.eol>
>
> Greetings, Christoph
>
>
--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews]]>Dimitrios Kolovos2010-03-26T15:40:09-00:00Re: Problem with epsilon.eol: Does not resolve referenced metamodels (Type 'Ecore!EPackage' not foun
https://www.eclipse.org/forums/index.php/mv/msg/165257/523499/#msg_523499
Glad you got this working! FYI if you prefer to access the model using a
different name in your EOL program you can use the "as" attribute in
your <model> nested element i.e. <model ref="Ecore" as="SomeOtherName"/>
Cheers,
Dimitris
Christoph Wienands wrote:
> Never mind. I got a knot in my brain and mixed up model names. Obviously,
> the name I'm assigning while loading the model needs to be the same as when
> I pass the model to the eol script.
>
> <epsilon.emf.loadModel name="Ecore"
> modelfile="${basedir}/../model/fbx.ecore"
> metamodeluri="http://www.eclipse.org/emf/2002/Ecore" read="true"
> store="true" />
>
> <epsilon.eol src="adaptMetamodel.eol">
> <model ref="Ecore" />
> </epsilon.eol>
>
> Greetings, Christoph
>
>