Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Standalone generation
[Acceleo] Standalone generation [message #880046] Fri, 01 June 2012 06:34 Go to previous message
Cyril Savary is currently offline 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.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:[Acceleo] Java services
Next Topic:org.eclipse.acceleo:maven:jar:3.2.1 not found
Goto Forum:
  


Current Time: Tue May 21 20:14:27 EDT 2013

Powered by FUDForum. Page generated in 0.02054 seconds