String javadoc = getProperty(ExecutionEnvironmentDescription.JAVADOC_LOC, properties); if (javadoc != null && javadoc.length() > 0){ try{ String version = getProperty(ExecutionEnvironmentDescription.LANGUAGE_LEVEL, properties); if (version != null) { return StandardVMType.getDefaultJavadocLocation(version);
/** * Returns the default index location specified in the properties or <code>null</code> * if none. * * @param properties properties map * @return index location specified in the properties or <code>null</code> if none * @since 3.7.0 */ public static URL getIndexLocation(Map<String, String> properties) { String index = getProperty(ExecutionEnvironmentDescription.INDEX_LOC, properties); if (index != null && index.length() > 0){ try{ URL url = new URL(index); if ("file".equalsIgnoreCase(url.getProtocol())){ //$NON-NLS-1$ File file = new File(url.getFile()); url = file.getCanonicalFile().toURI().toURL(); } return url; } catch (MalformedURLException e){ LaunchingPlugin.log(e); return null; } catch (IOException e){ LaunchingPlugin.log(e); return null; } } return null; }
/** * Returns the default index location specified in the properties or <code>null</code> * if none. * * @param properties properties map * @return index location specified in the properties or <code>null</code> if none * @since 3.7.0 */ public static URL getIndexLocation(Map<String, String> properties) { String index = getProperty(ExecutionEnvironmentDescription.INDEX_LOC, properties); if (index != null && index.length() > 0){ try{ URL url = new URL(index); if ("file".equalsIgnoreCase(url.getProtocol())){ //$NON-NLS-1$ File file = new File(url.getFile()); url = file.getCanonicalFile().toURI().toURL(); } return url; } catch (MalformedURLException e){ LaunchingPlugin.log(e); return null; } catch (IOException e){ LaunchingPlugin.log(e); return null; } } return null; }
String javadoc = getProperty(ExecutionEnvironmentDescription.JAVADOC_LOC, properties); if (javadoc != null && javadoc.length() > 0){ try{ String version = getProperty(ExecutionEnvironmentDescription.LANGUAGE_LEVEL, properties); if (version != null) { return StandardVMType.getDefaultJavadocLocation(version);