« Return to Thread: Problms with JRuby in Eclipse

Problms with JRuby in Eclipse

by Lagutko Nikolay :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

I have a problem with working with JRuby in Eclipse. If required scripts stored not in classpath directories but in other plugins JRuby cannot find them. As I see the problem in Equinox environment. When JRuby calculates path to required script it uses Equinox BundleClassLoader to load this script and it will return path to file in bundle-dependent format, for example

bundleresource://9/./some_script.rb

And in further calculations JRuby cannot correctly interpret this path. For example function File.expand_path will return “/./some_script” instead of full path “D:/path_to_plugin/some_script”.

 

I find out how to resolve this problem with using FileLocator class from org.eclipse.core.runtime plugin but I don’t want to have dependencies to other plugins in my org.jruby plugin.

 

Are there other ways to resolve this problem?

 

Nikolay Lagutko

 

Programmer

GERSIS SOFTWARE, LCC

 

Odoevskogo str., 131,

220018 Minsk

Republic of Belarus

ph.:    +375 (17) 2591900

fax:    +375 (17) 2591901

GSM: +375 (29) 3115430

ICQ:   457203926

Skype: lagutko_nikolay

Jabber: lagutko_n@...

http://www.gersis-software.com/

 

 « Return to Thread: Problms with JRuby in Eclipse