/** * Returns default library information for the given install location. * * @param installLocation the VM install location * @return LibraryInfo */ protected LibraryInfo getDefaultLibraryInfo(File installLocation) { IPath rtjar = getDefaultSystemLibrary(installLocation); File extDir = getDefaultExtensionDirectory(installLocation); File endDir = getDefaultEndorsedDirectory(installLocation); String[] dirs = null; if (extDir == null) { dirs = new String[0]; } else { dirs = new String[] {extDir.getAbsolutePath()}; } String[] endDirs = null; if (endDir == null) { endDirs = new String[0]; } else { endDirs = new String[] {endDir.getAbsolutePath()}; } return new LibraryInfo("???", new String[] {rtjar.toOSString()}, dirs, endDirs); //$NON-NLS-1$ }
/** * Returns default library information for the given install location. * * @param installLocation the VM install location * @return LibraryInfo */ protected LibraryInfo getDefaultLibraryInfo(File installLocation) { IPath rtjar = getDefaultSystemLibrary(installLocation); File extDir = getDefaultExtensionDirectory(installLocation); File endDir = getDefaultEndorsedDirectory(installLocation); String[] dirs = null; if (extDir == null) { dirs = new String[0]; } else { dirs = new String[] {extDir.getAbsolutePath()}; } String[] endDirs = null; if (endDir == null) { endDirs = new String[0]; } else { endDirs = new String[] {endDir.getAbsolutePath()}; } return new LibraryInfo("???", new String[] {rtjar.toOSString()}, dirs, endDirs); //$NON-NLS-1$ }