void savePropertyChanges() { for (String key : propertyChanges.keySet()) { String value = propertyChanges.get(key); innerRepo.setProperty(key, value == NULL ? null : value); } propertyChanges.clear(); }
private void resetCache(IArtifactRepository repository) { repository.setProperty(PROP_SITE_CHECKSUM, "0"); //$NON-NLS-1$ repository.removeAll(); }
public void initializeRepository(IArtifactRepository repository, URI location, IProgressMonitor monitor) throws ProvisionException { UpdateSite updateSite = UpdateSite.load(location, (Transport) getAgent().getService(Transport.SERVICE_NAME), monitor); String savedChecksum = repository.getProperties().get(PROP_SITE_CHECKSUM); if (savedChecksum != null && savedChecksum.equals(updateSite.getChecksum())) return; if (!location.getScheme().equals(PROTOCOL_FILE)) repository.setProperty(PROP_FORCE_THREADING, "true"); //$NON-NLS-1$ repository.setProperty(PROP_SITE_CHECKSUM, updateSite.getChecksum()); if (updateSite.getSite().getMirrorsURI() != null) repository.setProperty(IRepository.PROP_MIRRORS_URL, updateSite.getSite().getMirrorsURI()); repository.removeAll(); generateArtifactDescriptors(updateSite, repository, monitor); }
IArtifactRepository result = loadArtifactRepository(agent, location, true, true); if (result != null && result.isModifiable()) { result.setProperty(IRepository.PROP_COMPRESSED, compress ? "true" : "false"); //$NON-NLS-1$//$NON-NLS-2$ if (reusePackedFiles) result.setProperty(PUBLISH_PACK_FILES_AS_SIBLINGS, "true"); //$NON-NLS-1$ return result; manager.removeRepository(result.getLocation()); if (reusePackedFiles) result.setProperty(PUBLISH_PACK_FILES_AS_SIBLINGS, "true"); //$NON-NLS-1$ result.setProperty(IRepository.PROP_COMPRESSED, compress ? "true" : "false"); //$NON-NLS-1$//$NON-NLS-2$ return result;
IArtifactRepository result = loadArtifactRepository(agent, location, true, true); if (result != null && result.isModifiable()) { result.setProperty(IRepository.PROP_COMPRESSED, compress ? "true" : "false"); //$NON-NLS-1$//$NON-NLS-2$ if (reusePackedFiles) result.setProperty(PUBLISH_PACK_FILES_AS_SIBLINGS, "true"); //$NON-NLS-1$ return result; manager.removeRepository(result.getLocation()); if (reusePackedFiles) result.setProperty(PUBLISH_PACK_FILES_AS_SIBLINGS, "true"); //$NON-NLS-1$ result.setProperty(IRepository.PROP_COMPRESSED, compress ? "true" : "false"); //$NON-NLS-1$//$NON-NLS-2$ return result;
IArtifactRepository result = loadArtifactRepository(agent, location, true, true); if (result != null && result.isModifiable()) { result.setProperty(IRepository.PROP_COMPRESSED, compress ? "true" : "false"); //$NON-NLS-1$//$NON-NLS-2$ if (reusePackedFiles) result.setProperty(PUBLISH_PACK_FILES_AS_SIBLINGS, "true"); //$NON-NLS-1$ return result; manager.removeRepository(result.getLocation()); if (reusePackedFiles) result.setProperty(PUBLISH_PACK_FILES_AS_SIBLINGS, "true"); //$NON-NLS-1$ result.setProperty(IRepository.PROP_COMPRESSED, compress ? "true" : "false"); //$NON-NLS-1$//$NON-NLS-2$ return result;
IArtifactRepository result = loadArtifactRepository(agent, location, true, true); if (result != null && result.isModifiable()) { result.setProperty(IRepository.PROP_COMPRESSED, compress ? "true" : "false"); //$NON-NLS-1$//$NON-NLS-2$ if (reusePackedFiles) result.setProperty(PUBLISH_PACK_FILES_AS_SIBLINGS, "true"); //$NON-NLS-1$ return result; manager.removeRepository(result.getLocation()); if (reusePackedFiles) result.setProperty(PUBLISH_PACK_FILES_AS_SIBLINGS, "true"); //$NON-NLS-1$ result.setProperty(IRepository.PROP_COMPRESSED, compress ? "true" : "false"); //$NON-NLS-1$//$NON-NLS-2$ return result;
String key = inner.next(); String value = properties.get(key); artifactRepository.setProperty(key, value);
publisherInfo.getArtifactRepository().setProperty(IRepository.PROP_MIRRORS_URL, mirrors);