/** * Returns the {@link URL} for the index location or <code>null</code> if one has not been set. * * @return the index {@link URL} or <code>null</code> * @since 3.7.0 */ private URL getIndexLocation() { return EEVMType.getIndexLocation(fProperties); } }
/** * Returns the javadoc location or <code>null</code> if unable to determine one. * A default one is generated if not present, based on language level. * * @return javadoc location or <code>null</code> if none */ private URL getJavadocLocation() { return EEVMType.getJavadocLocation(fProperties); }
IStatus status = EEVMType.validateDefinitionFile(description); if (status.isOK()) { VMStandin standin = new VMStandin(getVMInstallType(EEVMType.ID_EE_VM_TYPE), id); standin.setLibraryLocations(description.getLibraryLocations()); standin.setVMArgs(description.getVMArguments()); standin.setJavadocLocation(EEVMType.getJavadocLocation(description.getProperties())); standin.setAttribute(EEVMInstall.ATTR_EXECUTION_ENVIRONMENT_ID, description.getProperty(ExecutionEnvironmentDescription.CLASS_LIB_LEVEL)); File exe = description.getExecutable();
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);
IStatus status = EEVMType.validateDefinitionFile(description); if (status.isOK()) { VMStandin standin = new VMStandin(getVMInstallType(EEVMType.ID_EE_VM_TYPE), id); standin.setLibraryLocations(description.getLibraryLocations()); standin.setVMArgs(description.getVMArguments()); standin.setJavadocLocation(EEVMType.getJavadocLocation(description.getProperties())); standin.setAttribute(EEVMInstall.ATTR_EXECUTION_ENVIRONMENT_ID, description.getProperty(ExecutionEnvironmentDescription.CLASS_LIB_LEVEL)); File exe = description.getExecutable();
/** * 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; }
/** * Returns the javadoc location or <code>null</code> if unable to determine one. * A default one is generated if not present, based on language level. * * @return javadoc location or <code>null</code> if none */ private URL getJavadocLocation() { return EEVMType.getJavadocLocation(fProperties); }
/** * Returns the {@link URL} for the index location or <code>null</code> if one has not been set. * * @return the index {@link URL} or <code>null</code> * @since 3.7.0 */ private URL getIndexLocation() { return EEVMType.getIndexLocation(fProperties); } }
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);