Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » URI is not Hierarchical
URI is not Hierarchical [message #1088076] Fri, 16 August 2013 14:48 Go to next message
Kosala Yapa is currently offline Kosala YapaFriend
Messages: 159
Registered: September 2010
Senior Member
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 14:49]

Report message to a moderator

Re: URI is not Hierarchical [message #1088080 is a reply to message #1088076] Fri, 16 August 2013 14:52 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
Registered: July 2009
Senior Member

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 14:52]

Report message to a moderator

Previous Topic:How to implement Switch Workspace in Eclipse 4 / Eclipse RCP
Next Topic:Features not showing Icons
Goto Forum:
  


Current Time: Thu Mar 28 21:13:57 GMT 2024

Powered by FUDForum. Page generated in 0.03030 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top