-
|
I have a transformation that executes without issue while when started from an eclipse "ATL EMFTVM" launcher. This transformation requires several UML input files that have external references (for property types, generalizations, etc...). However when I try executing it using an ANT script, the external references cannot be resolved. I double checked the script against the run configuration in order to verify that all the models and metamodels used are declared in a same way. What could explain this difference and how can this problem be solved? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
I succeed in building a simple test case that reproduce the issue. While the traces got from the Ant script is: My interpretation is that, when run from an Ant script, ATL cannot resolve properly the external reference (href) in XMI files. Also I notice that in some cases, Ant scripts can have issues for dealing with file paths that include space characters, implying to use an escape sequence (i.e. '%20') instead. I never had this issue with Eclipse launchers. So it looks like the code managing the model loading is not the same in both cases. Is there a bug in the one used by Ant or do I miss something? |
Beta Was this translation helpful? Give feedback.
-
|
If you run your Ant script within the same JRE as your Eclipse instance, it should have full access to the Eclipse environment. If you look into the UML XMI source, what form do these external references have? |
Beta Was this translation helpful? Give feedback.
-
|
Found the issue: you need to prefix your (meta-)model URIs with |
Beta Was this translation helpful? Give feedback.
Found the issue: you need to prefix your (meta-)model URIs with
platform:/resource/if you want relative hyperlinks to work.