Package org.eclipse.jdt.launching

Examples of org.eclipse.jdt.launching.LibraryLocation


   * @see org.eclipse.jdt.launching.IVMInstallType#getDefaultLibraryLocations(java.io.File)
   */
  public LibraryLocation[] getDefaultLibraryLocations(File installLocation) {

    // Find kernel types
    LibraryLocation kernel = getKernelLocation(installLocation,
        "default", "clearvm"); //$NON-NLS-1$ //$NON-NLS-2$
   
    // IJVM:
    // for ij vm kernelSize = 0 
    // for ibm vm kernelSize = 1 
View Full Code Here


      String sourceRoot = bootclasspathProperties.getProperty(
          sourceRootKey, "/"); //$NON-NLS-1$
      IPath sourceRootPath = new Path(sourceRoot);

      // We have everything we need to build up a library location
      LibraryLocation libLocation = new LibraryLocation(libraryPath,
          sourcePath, sourceRootPath);
      bootLibraries.add(libLocation);
    }
    return bootLibraries;
  }
View Full Code Here

          if (length > 4) {
            String suffix = name.substring(length - 4);
            if (suffix.equalsIgnoreCase(".zip") || suffix.equalsIgnoreCase(".jar")) { //$NON-NLS-1$ //$NON-NLS-2$
              try {
                IPath libPath = new Path(jar.getCanonicalPath());
                LibraryLocation library = new LibraryLocation(
                    libPath, Path.ROOT, Path.EMPTY);
                extensions.add(library);
              } catch (IOException e) {
                // Ignored.
              }
View Full Code Here

      rootPath = Path.ROOT;
    } else {
      rootPath = new Path(rootStr);
    }

    return new LibraryLocation(libPath, srcPath, rootPath);
  }
View Full Code Here

        IVMInstall vmInstall = geronimoRuntimeDelegate.getVMInstall();

        LibraryLocation[] libLocations = JavaRuntime.getLibraryLocations(vmInstall);
        IPath vmLibDir = null;
        for(int i = 0; i < libLocations.length; i++) {
            LibraryLocation loc = libLocations[i];
            IPath libDir = loc.getSystemLibraryPath().removeLastSegments(2);
            if(libDir.toOSString().endsWith("lib")) {
                vmLibDir = libDir;
                break;
            }
        }
View Full Code Here

          // jre src found.
          if(jreSrc.toFile().exists()){
            logger.info("Setting '{}' to '{}'",
                JavaRuntime.JRESRC_VARIABLE, jreSrc);
            newLocations[ii] = new LibraryLocation(
                locations[ii].getSystemLibraryPath(),
                jreSrc,
                locations[ii].getPackageRootPath(),
                locations[ii].getJavadocLocation());

          // jre src not found.
          }else{
            logger.debug(
                "Unable to locate jre src.zip for JAVA_HOME: " +
                SystemUtils.JAVA_HOME);
            newLocations[ii] = new LibraryLocation(
                locations[ii].getSystemLibraryPath(),
                Path.EMPTY,
                locations[ii].getPackageRootPath(),
                locations[ii].getJavadocLocation());
          }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.launching.LibraryLocation

Copyright © 2018 www.massapicom. 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.