I have a UML file, myModel.uml. The model references a profile, myProfile.uml, in various places.
<references xmi:type="ecore:EPackage" href="">
I am writing a standalone Java application, so I load the model and the resources on my own. As you can see from the code snippets, the profile is referenced via relative path. As long as the user has his paths accordingly, everything works fine. However, for convenience I want to add a command line parameter to the standalone app where the user can specifiy the profile location.
How can I apply the profile to the loaded model, should the user specify a different location? I tried adding the profile from the custom path to the resource set, but the model still cannot resolve the profile, due to the relative paths hardcoded into the model.uml I suppose.