|URI is not Hierarchical [message #1088076]
||Fri, 16 August 2013 14:48
| Kosala Yapa
Registered: September 2010
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.
[Updated on: Fri, 16 August 2013 14:49]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01728 seconds