Strange problem with imports and input models [message #567859] |
Wed, 21 January 2009 10:53 |
Adrian Noguero 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
|
|
|
Powered by
FUDForum. Page generated in 0.03221 seconds