| [Acceleo] Standalone generation [message #880046] |
Fri, 01 June 2012 06:34  |
Cyril Savary Messages: 3 Registered: June 2012 |
Junior Member |
|
|
I'm trying to call acceleo generation without eclipse.
I got the error "package with uri "*" not found" which I resolved by adding the following line in the registerPackages function :
resourceSet.getPackageRegistry().put("metamodel.ecore", EcorePackage.eINSTANCE);
where "metamodel.ecore" is my metamodel.
But then I have a new error :
"Class 'App' is not found or is Abstract (file :***/app.xmi)"
where 'App' is a class from my metamodel, the class from which I created my model 'app.xmi'.
I tried to add lines in the 'registerResourceFactories' function like :
resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("xmi", new XMIResourceFactoryImpl());
But this doesn't change anything. Any idea ?
Thank you.
|
|
|
|
| Re: [Acceleo] Standalone generation [message #892763 is a reply to message #885099] |
Fri, 29 June 2012 10:14   |
Cyril Savary Messages: 3 Registered: June 2012 |
Junior Member |
|
|
Thanks for your response,
Why should I have a genmodel ? I don't use one with my ecore meta-model.
With my meta-model, I only create dynamic instances of it, this instances are xmi models.
Then I use these xmi models as input for acceleo generation. Now I'm trying to do the same thing in standalone, isn't it possible ?
[Updated on: Mon, 02 July 2012 07:58] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.11438 seconds