[Acceleo] Standalone generation [message #880046] |
Fri, 01 June 2012 06:34  |
Eclipse User |
|
|
|
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.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03874 seconds