[MOFSCRIPT] version 1.2.1 is not working [message #378043] |
Tue, 22 May 2007 13:24  |
Eclipse User |
|
|
|
Originally posted by: diego.alonso.upct.es
Hello all,
I've recently upgraded Mofscript to version 1.2.1 and I have found that I
cannot run any transformation two or more times on the same model. It works
for the first time, but any further execution produces no output, just as
it is not even executed. What is even stranger, the transformation gets
executed (but just once) if you rename the model and you reapply it to
renamed model.
Any ideas? Perhaps I'm doing something wrong ...
I'm using Eclipse 3.2.2 with org.eclipse.emf 2.2.0.v20070213 and org.antlr
2.7.6
Cheers.
|
|
|
|
|
Re: [MOFSCRIPT] version 1.2.1 is not working [message #378067 is a reply to message #378050] |
Mon, 04 June 2007 04:15  |
Eclipse User |
|
|
|
Hello Diego,
I have experimented your problem 1) while running MOFscript transformations
from Java.
It seems that once the input model is loaded with MOFscript through the
following instruction
a) ExecutionManager.loadSourceModel(sourceModelFile)
then it remains in the ExecutionManger resouce set and it is not updated
later if a) is re-executed.
In my application I have changed this behaviour with the following code that
needs to be executed before a)
Iterator iter = execMgr.getResourceSet().getResources().iterator();
while (iter.hasNext()){
((Resource) iter.next()).unload();
}
Stefano.
"Diego Alonso C
|
|
|
Re: [MOFSCRIPT] version 1.2.1 is not working [message #599681 is a reply to message #378043] |
Wed, 23 May 2007 04:47  |
Eclipse User |
|
|
|
Hello Diego,
I have just tested MOFScript 1.2.1 on Eclipse 3.2.2 with org.eclipse.emf
2.2.0.v20070213 and org.antlr
2.7.6 and I am not able to recreate your problem.
I assume you already have tried to run eclipse with -clean?
If so, perhaps try to remove the MOFScript plugin manually run -clean and
then reinstall.
/G
|
|
|
|
Re: [MOFSCRIPT] version 1.2.1 is not working [message #601614 is a reply to message #378050] |
Mon, 04 June 2007 04:15  |
Eclipse User |
|
|
|
Hello Diego,
I have experimented your problem 1) while running MOFscript transformations
from Java.
It seems that once the input model is loaded with MOFscript through the
following instruction
a) ExecutionManager.loadSourceModel(sourceModelFile)
then it remains in the ExecutionManger resouce set and it is not updated
later if a) is re-executed.
In my application I have changed this behaviour with the following code that
needs to be executed before a)
Iterator iter = execMgr.getResourceSet().getResources().iterator();
while (iter.hasNext()){
((Resource) iter.next()).unload();
}
Stefano.
"Diego Alonso C
|
|
|
Powered by
FUDForum. Page generated in 0.03597 seconds