public String getAbsolutePath() { if (absolutePath != null) return absolutePath; try { return absolutePath = new File(URLUtil.getPath(getURL())).getCanonicalPath(); } catch (IOException e) { return absolutePath = resource.toString(); } }
public String getAbsolutePath() { if (absolutePath != null) return absolutePath; try { return absolutePath = new File(URLUtil.getPath(getURL())).getCanonicalPath(); } catch (IOException e) { return absolutePath = resource.toString(); } }
public String getAbsolutePath() { if (absolutePath != null) return absolutePath; try { return absolutePath = new File(URLUtil.getPath(getURL())).getCanonicalPath(); } catch (IOException e) { return absolutePath = resource.toString(); } }
protected void debugLogFound( LoadServiceResource resource ) { if (RubyInstanceConfig.DEBUG_LOAD_SERVICE) { String resourceUrl; try { resourceUrl = resource.getURL().toString(); } catch (IOException e) { resourceUrl = e.getMessage(); } LOG.info( "found: " + resourceUrl ); } }
@Deprecated protected final void debugLogFound( LoadServiceResource resource ) { if (RubyInstanceConfig.DEBUG_LOAD_SERVICE) { String resourceUrl; try { resourceUrl = resource.getURL().toString(); } catch (IOException e) { resourceUrl = e.getMessage(); } LOG.info( "found: {}", resourceUrl ); } }
public String getAbsolutePath() { if (absolutePath != null) return absolutePath; try { return absolutePath = new File(URLUtil.getPath(getURL())).getCanonicalPath(); } catch (IOException e) { return absolutePath = resource.toString(); } }
@Deprecated protected final void debugLogFound( LoadServiceResource resource ) { if (RubyInstanceConfig.DEBUG_LOAD_SERVICE) { String resourceUrl; try { resourceUrl = resource.getURL().toString(); } catch (IOException e) { resourceUrl = e.getMessage(); } LOG.info( "found: {}", resourceUrl ); } }
protected void debugLogFound( LoadServiceResource resource ) { if (RubyInstanceConfig.DEBUG_LOAD_SERVICE) { String resourceUrl; try { resourceUrl = resource.getURL().toString(); } catch (IOException e) { resourceUrl = e.getMessage(); } LOG.info( "found: " + resourceUrl ); } }
public void load(Ruby runtime, boolean wrap) { try { URL jarFile = resource.getURL(); // Make Java class files in the jar reachable from Ruby runtime.getJRubyClassLoader().addURL(jarFile); } catch (IOException e) { throw runtime.newIOErrorFromException(e); } } }
if (!resource.getURL().getProtocol().equals("jar")) { file = resource.getAbsolutePath(); } else {
public void load(Ruby runtime, boolean wrap) { try { URL jarFile = resource.getURL(); // Make Java class files in the jar reachable from Ruby runtime.getJRubyClassLoader().addURL(jarFile); } catch (IOException e) { throw runtime.newIOErrorFromException(e); } } }
if (!resource.getURL().getProtocol().equals("jar")) { file = resource.getAbsolutePath(); } else {
URL jarURL = ((JarredScript)state.library).getResource().getURL(); runtime.getJRubyClassLoader().addURL(jarURL); debugLogFound("jarWithoutExtension", jarURL.toString());
URL jarURL = ((JarredScript)state.library).getResource().getURL(); runtime.getJRubyClassLoader().addURL(jarURL); debugLogFound("jarWithoutExtension", jarURL.toString());
public void load(Ruby runtime, boolean wrap) { try { URL jarFile = resource.getURL(); // Make Java class files in the jar reachable from Ruby runtime.getJRubyClassLoader().addURL(jarFile); } catch (IOException e) { throw runtime.newIOErrorFromException(e); } // If an associated Service library exists, load it as well ClassExtensionLibrary serviceExtension = ClassExtensionLibrary.tryFind(runtime, searchName); if (serviceExtension != null) { serviceExtension.load(runtime, wrap); } } }
public void load(Ruby runtime, boolean wrap) { try { URL jarFile = resource.getURL(); // Make Java class files in the jar reachable from Ruby runtime.getJRubyClassLoader().addURL(jarFile); } catch (IOException e) { throw runtime.newIOErrorFromException(e); } // If an associated Service library exists, load it as well ClassExtensionLibrary serviceExtension = ClassExtensionLibrary.tryFind(runtime, searchName); if (serviceExtension != null) { serviceExtension.load(runtime, wrap); } } }