Injecting a model into a .xmi is very slow [message #636963] |
Wed, 03 November 2010 14:58 |
Marten Sijtema Messages: 67 Registered: November 2009 |
Member |
|
|
Hello
I created my own little language (called AnnotationDSL) in Xtext, and I want to inject it into an EMF in-memory model to process using some other MDE tools (ie. model transformation tools).
It all works, but it seems that the standAloneSetup is very slow, it takes like 7 seconds to inject a model.
What is the best way to do this from java? I run the piece of code below as an ANT task that I created myself (running the ANT script from eclipse). Is this a good approach?
AnnotationDSLStandaloneSetup.doSetup();
ResourceSet rs = new ResourceSetImpl();
Resource res = rs.getResource(URI.createURI("file://"+this.AnnotationModel), true);
EObject eobject = res.getContents().get(0);
is there another way to inject a model from ant script, such that I can use the resulting in memory model for the rest of the processing (then I might not need the piece of java anymore)?
My company: Sytematic, building business software from models.
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03832 seconds