public String getSecuritySettings() { String key = m_pid + ServiceConstants.PROPERTY_SECURITY; if (!contains(key)) { String spec = m_propertyResolver.get(key); if (spec == null) { spec = new File(System.getProperty("user.home"), ".m2/settings-security.xml") .getPath(); } return set(key, spec); } return get(key); } }
/** * @see MavenConfiguration#isOffline() */ public boolean isOffline() { if (!contains(m_pid + ServiceConstants.PROPERTY_OFFLINE)) { return set( m_pid + ServiceConstants.PROPERTY_OFFLINE, Boolean.valueOf(m_propertyResolver.get(m_pid + ServiceConstants.PROPERTY_OFFLINE))); } return get(m_pid + ServiceConstants.PROPERTY_OFFLINE); }
/** * {@inheritDoc} */ public Boolean useFallbackRepositories() { if (!contains(m_pid + ServiceConstants.PROPERTY_USE_FALLBACK_REPOSITORIES)) { String useFallbackRepoProp = m_propertyResolver.get(m_pid + ServiceConstants.PROPERTY_USE_FALLBACK_REPOSITORIES); return set(m_pid + ServiceConstants.PROPERTY_USE_FALLBACK_REPOSITORIES, Boolean.valueOf(useFallbackRepoProp == null ? "true" : useFallbackRepoProp)); } return get(m_pid + ServiceConstants.PROPERTY_USE_FALLBACK_REPOSITORIES); }
/** * @see MavenConfiguration#getCertificateCheck() */ public boolean getCertificateCheck() { if (!contains(m_pid + ServiceConstants.PROPERTY_CERTIFICATE_CHECK)) { return set( m_pid + ServiceConstants.PROPERTY_CERTIFICATE_CHECK, Boolean.valueOf(m_propertyResolver.get(m_pid + ServiceConstants.PROPERTY_CERTIFICATE_CHECK))); } return get(m_pid + ServiceConstants.PROPERTY_CERTIFICATE_CHECK); }
public List<MavenRepositoryURL> getDefaultRepositories() throws MalformedURLException { if (!contains(m_pid + ServiceConstants.PROPERTY_DEFAULT_REPOSITORIES)) { // look for repositories property String defaultRepositoriesProp = m_propertyResolver.get(m_pid + ServiceConstants.PROPERTY_DEFAULT_REPOSITORIES); // build repositories list final List<MavenRepositoryURL> defaultRepositoriesProperty = new ArrayList<MavenRepositoryURL>(); if (defaultRepositoriesProp != null && defaultRepositoriesProp.trim().length() > 0) { String[] repositories = defaultRepositoriesProp.split(REPOSITORIES_SEPARATOR); for (String repositoryURL : repositories) { defaultRepositoriesProperty.add(new MavenRepositoryURL(repositoryURL.trim())); } } LOGGER.trace("Using repositories [" + defaultRepositoriesProperty + "]"); return set(m_pid + ServiceConstants.PROPERTY_DEFAULT_REPOSITORIES, defaultRepositoriesProperty); } return get(m_pid + ServiceConstants.PROPERTY_DEFAULT_REPOSITORIES); }
public Integer getTimeout() { if (!contains(m_pid + ServiceConstants.PROPERTY_TIMEOUT)) { String timeout = m_propertyResolver.get(m_pid + ServiceConstants.PROPERTY_TIMEOUT); return set(m_pid + ServiceConstants.PROPERTY_TIMEOUT, Integer.valueOf(timeout == null ? DEFAULT_TIMEOUT : timeout)); } return get(m_pid + ServiceConstants.PROPERTY_TIMEOUT); }
public String getGlobalUpdatePolicy() { final String propertyName = m_pid + ServiceConstants.PROPERTY_GLOBAL_UPDATE_POLICY; if (contains(propertyName)) { return get(propertyName); } final String propertyValue = m_propertyResolver.get(propertyName); if (propertyValue != null) { set(propertyName, propertyValue); return propertyValue; } return null; }
public String getGlobalChecksumPolicy() { final String propertyName = m_pid + ServiceConstants.PROPERTY_GLOBAL_CHECKSUM_POLICY; if (contains(propertyName)) { return get(propertyName); } final String propertyValue = m_propertyResolver.get(propertyName); if (propertyValue != null) { set(propertyName, propertyValue); return propertyValue; } return null; }
if (!contains(m_pid + ServiceConstants.PROPERTY_SETTINGS_FILE)) { String spec = m_propertyResolver.get(m_pid + ServiceConstants.PROPERTY_SETTINGS_FILE); if (spec == null) {
if (!contains(m_pid + ServiceConstants.PROPERTY_LOCAL_REPOSITORY)) {
if (!contains(m_pid + ServiceConstants.PROPERTY_REPOSITORIES)) {