Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [MOFSCRIPT] version 1.2.1 is not working
[MOFSCRIPT] version 1.2.1 is not working [message #378043] Tue, 22 May 2007 17:24 Go to next message
Eclipse UserFriend
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 #378044 is a reply to message #378043] Wed, 23 May 2007 08:47 Go to previous messageGo to next message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
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 #378050 is a reply to message #378044] Thu, 24 May 2007 22:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: diego.alonso.upct.es

--nextPart2596847.6FAhxLKsX5
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8Bit

Thank you G
Re: [MOFSCRIPT] version 1.2.1 is not working [message #378067 is a reply to message #378050] Mon, 04 June 2007 08:15 Go to previous message
Stefano is currently offline StefanoFriend
Messages: 2
Registered: July 2009
Junior Member
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 08:47 Go to previous message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
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 #599710 is a reply to message #378044] Thu, 24 May 2007 22:39 Go to previous message
Eclipse UserFriend
Originally posted by: diego.alonso.upct.es

--nextPart2596847.6FAhxLKsX5
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8Bit

Thank you G
Re: [MOFSCRIPT] version 1.2.1 is not working [message #601614 is a reply to message #378050] Mon, 04 June 2007 08:15 Go to previous message
Stefano is currently offline StefanoFriend
Messages: 2
Registered: July 2009
Junior Member
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
Previous Topic:[TCS] Problem with symbols
Next Topic:[TCS] Where is km3.tcs file ?
Goto Forum:
  


Current Time: Fri Mar 29 01:39:13 GMT 2024

Powered by FUDForum. Page generated in 0.03745 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top