Dependencies between myDsl - Files [message #1698200] |
Fri, 12 June 2015 06:37 |
Simon Ziehme Messages: 22 Registered: November 2013 |
Junior Member |
|
|
I'm using a import mechanism to import elements of my dsl from other dsl-files.
...
QualifiedName:
ID ('.' ID)*
;
Import:
'Import' importedNamespace = QualifiedNameWithWildcard
;
QualifiedNameWithWildcard:
QualifiedName '.*'?
;
...
...
Package mp.mpchat.coins.ichat
{
Import mp.mpchat.types.*
Interface IChat
{
...
It's also possible to import elements from other projects in my workspace.
The problem is:
If i clean my Project in Eclipse IDE, my dsl-Files in depended projects cannot find elements from this file. In case of a build, everything is fine.
But, it's is not possible for my, to build my projects in the workspace on the command line, because the dependency problem. (I'm using cdt headless build)
I have also try to generate from my model without eclipse. (java -jar mygenerator.jar ...)
But the same problem. The other dsl-Files will be not found.
java -jar ../xxx_generator.jar IChat.mydsl
ERROR:Couldn't resolve reference to Entity 'ChatMessage'. (IChat.mydsl line : 10)
ERROR:Couldn't resolve reference to Entity 'ChatMessage'. (IChat.mydsl line : 15)
ERROR:Couldn't resolve reference to Entity 'ErrorCode'. (IChat.mydsl line : 16)
How can i configure the dependencys between many dsl-Files?
Thanks Simon
[Updated on: Fri, 12 June 2015 07:18] Report message to a moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02820 seconds