Package org.eclipse.osgi.service.urlconversion

Examples of org.eclipse.osgi.service.urlconversion.URLConverter.resolve()


   * @exception IOException if unable to resolve URL
   * @throws IOException if an error occurs during the resolution
   */
  public static URL resolve(URL url) throws IOException {
    URLConverter converter = Activator.getURLConverter(url);
    return converter == null ? url : converter.resolve(url);
  }

  /**
   * Returns a file for the contents of the specified bundle.  Depending
   * on how the bundle is installed the returned file may be a directory or a jar file
View Full Code Here


   * @exception IOException if unable to resolve URL
   * @throws IOException if an error occurs during the resolution
   */
  public static URL resolve(URL url) throws IOException {
    URLConverter converter = Activator.getURLConverter(url);
    return converter == null ? url : converter.resolve(url);
  }

}
View Full Code Here

        
         URL rootEntry = b.getEntry("/");
         URLConverter converter = getURLConverter(b.getBundleContext(), rootEntry);
         if (converter != null) {
           try {
          rootEntry = converter.resolve(rootEntry);
          if (rootEntry != null && "file".equals(rootEntry.getProtocol())) {
            File installLocation = new File(rootEntry.getPath());
            String classpathSep = System.getProperty("path.separator");
           
            rv = new File(installLocation,"JemmyCore.jar").getAbsolutePath();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.