URI is not Hierarchical [message #1088076] |
Fri, 16 August 2013 10:48  |
Eclipse User |
|
|
|
Hi there,
I have model/model.ecore in "com.abc.pss" plugin.
Now I need to read this model.ecore in my test plugin, which is "com.abc.pss.test". I am using the following code.
5: url = new URL("platform:/plugin/" + "com.abc.pss" + "model/model.ecore");
6: file = new File(FileLocator.resolve(url).toURI());
String filePath = file.getAbsolutePath();
Now this filePath is used to read model.ecore file. When I launch Junit Plugin Test, I can run all test cases without any problem in my PC. Those test cases need model.ecore.
Problem: After doing a build, I do run automated tests in the build machine. When I check test results, I can see an error "URI is not Hierarchical" pointing to line 6. IMO, error comes at toURI() conversion.
Any help is highly appreciated.
Cheers,
K
[Updated on: Fri, 16 August 2013 10:49] by Moderator
|
|
|
Re: URI is not Hierarchical [message #1088080 is a reply to message #1088076] |
Fri, 16 August 2013 10:52  |
Eclipse User |
|
|
|
Hi Kosala,
Best guess: You are running in RCP mode when you do the local Junit test but you do NOT run in eclipse on the build machine.
Best regards,
Wim
[Updated on: Fri, 16 August 2013 10:52] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03119 seconds