|
|
|
|
|
|
Re: MOFScript:generate output with the same filename as the source file [message #518487 is a reply to message #518481] |
Thu, 04 March 2010 09:43 |
yeliu Messages: 145 Registered: July 2009 |
Senior Member |
|
|
Hello,
I tried the following to solve the post I just posted and it seems that problem solved.
---------------
ParserUtil par=new ParserUtil();
MOFScriptSpecification spec = par.parse(f, true);
---------------
But there are a list of parse error, like (to paste a few)
--------------
Parsing result: 62 errors
: Error: MTTParseError: Illegal/unknown context: uml, line: 440, column: 0
: Error: MTTParseError: Type not found: 'PackageableElement' in metamodel 'null', line: 0, column: 0
: Error: MTTParseError: Can't find feature 'packagedElement' for type 'Model'., line: 17, column: 6
: Error: MTTParseError: Can't find feature 'name' for type 'PackageableElement'., line: 19, column: 37
: Error: MTTParseError: Can't find feature 'name' for type 'PackageableElement'., line: 21, column: 23
: Error: MTTParseError: Can't find feature 'nestedPackage' for type 'Model'., line: 41, column: 5
---------------
The transformation alone doesn't have any parsing error. But why the error message?
Thanks as always!
|
|
|
|
|
|
|
|
|
Re: MOFScript:generate output with the same filename as the source file [message #580361 is a reply to message #518481] |
Thu, 04 March 2010 09:43 |
yeliu Messages: 145 Registered: July 2009 |
Senior Member |
|
|
Hello,
I tried the following to solve the post I just posted and it seems that problem solved.
---------------
ParserUtil par=new ParserUtil();
MOFScriptSpecification spec = par.parse(f, true);
---------------
But there are a list of parse error, like (to paste a few)
--------------
Parsing result: 62 errors
: Error: MTTParseError: Illegal/unknown context: uml, line: 440, column: 0
: Error: MTTParseError: Type not found: 'PackageableElement' in metamodel 'null', line: 0, column: 0
: Error: MTTParseError: Can't find feature 'packagedElement' for type 'Model'., line: 17, column: 6
: Error: MTTParseError: Can't find feature 'name' for type 'PackageableElement'., line: 19, column: 37
: Error: MTTParseError: Can't find feature 'name' for type 'PackageableElement'., line: 21, column: 23
: Error: MTTParseError: Can't find feature 'nestedPackage' for type 'Model'., line: 41, column: 5
---------------
The transformation alone doesn't have any parsing error. But why the error message?
Thanks as always!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04545 seconds