Incorrect access to model in ubuntu [message #507126] |
Mon, 11 January 2010 23:27  |
Eclipse User |
|
|
|
Hi, I am trying to validate a model using evl in Ubuntu 9.04 and Eclipse Galileo. When validating I get a message that says
Resource 'xxx' does not exist. (xxx is a file path)
The file exists and debugging the execution I found that in the class EmfModel the instruction this.modelFileUri = EmfUtil.createURI(modelFile); returns the URI with "platform:/resource" before the valid path.
Inside the method createURI() I see that these lines are commented:
// Handle paths that start with / under Unix e.g. /local/foo.txt
//else if (OperatingSystem.isUnix() && s.startsWith("/")) {
// return URI.createFileURI(s);
//}
Could be my problem because that?
Best regards,
Raul
|
|
|
|
|
|
|
|
|
Re: Incorrect access to model in ubuntu [message #584681 is a reply to message #507161] |
Tue, 12 January 2010 07:25  |
Eclipse User |
|
|
|
What do you mean with "safe side"?
Let's specify a little more the problem.
I call the evl validation through java using a plugin, and in order to do that I launch a second Eclipse instance where the models are. In Windows I have never had this issues (still haven't) but when running the tests from Linux I get this error. In Windows createURI does not add the prefix "platform:/resource", does it mean it has no need of keeping in the safe side?
/foo/bar.model is an absolute path, doesn't it? Or should I give workspace relative paths in Linux?
Many thanks,
Hector
|
|
|
Re: Incorrect access to model in ubuntu [message #584695 is a reply to message #507186] |
Tue, 12 January 2010 10:00  |
Eclipse User |
|
|
|
I reply to myself:
I have made it work changing the given path from an absolute path to a workspace relative path. Now, using the epsilon OperativeSystem utilities I change the path of the model depending on the S.O. of the computer.
Is this the correct way or would it be fixed?
Best regards,
Hector
|
|
|
|
Powered by
FUDForum. Page generated in 0.04579 seconds