Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » MOFScript » Strange problem with imports and input models
Strange problem with imports and input models [message #469358] Wed, 21 January 2009 10:53
Adrian Noguero is currently offline Adrian NogueroFriend
Messages: 18
Registered: July 2009
Junior Member
Hi,

Using the last version of the MOFScript plugin I came across the following
problem. I'm executing a M2M transformation with the following declaration:

import "M2M_UMLProfilingUtils.m2t";

texttransformation ExampleTransformation (in
cheddar:"http://esi.es.cheddar/",
out
uml:"http://www.eclipse.org/uml2/2.1.0/UML" (uml.Model)) {

module::main () {
stdout.println("Prueba");
}
}

The declaration of the imported transformation is:

texttransformation M2M_UMLProfilingUtils (in
uml:"http://www.eclipse.org/uml2/2.1.0/UML") {

}

When I execute the transformation I get the following output in the
MOFScript console:

## Compiling 'CheddarToMARTE.m2t' (Using repository path:
plugins/org.eclipse.mofscript.editor_1.3.3/repository/metamo dels)
## Parsing 'CheddarToMARTE.m2t'
## Parsing 'M2M_UMLProfilingUtils.m2t'
## Finished Compiling.
## No errors
## Open File:
E:\Eclipse\EclipseProjects\papyrus_1.11\CheddarExample\Model s\example.cheddar
for input model:cheddar
## Loading source model - example.cheddar...(Loading time 0 - Msec)
## Executing MOFScript Specification

Execution Error:
org.eclipse.mofscript.runtime.MofScriptExecutionException: Missing Source
Models.


However if I remove the import statement, or if I remove the "in" model,
or if I include a new "in" dummy uml model, the problem is resolved :S

I guess this is a bug, but perhaps I'm doing something wrong, can you help
me with this?

Thanks!

Adrian
Previous Topic:Bug located when calling a java class from a transformation
Next Topic:Strange problem with imports and input models
Goto Forum:
  


Current Time: Thu Apr 18 09:40:44 GMT 2024

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

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

Back to the top