@Override public void setRegistry(Registry registry) { super.setRegistry(registry); Workspace workspace = registry.getPlugin(Workspace.class); SetLocation location = workspace .warning("FixedIndexedRepository is deprecated, please use " + OSGiRepository.class.getName()); location.header("-plugin.*") .context("FixedIndexedRepository"); } }
@Override public void setRegistry(Registry registry) { super.setRegistry(registry); Workspace workspace = registry.getPlugin(Workspace.class); SetLocation location = workspace .warning("FixedIndexedRepository is deprecated, please use " + OSGiRepository.class.getName()); location.header("-plugin.*") .context("FixedIndexedRepository"); } }
public List<Resolution> validate() throws Exception { try (OSGiRepository repository = new OSGiRepository(); HttpClient httpClient = new HttpClient()) { Map<String, String> map = new HashMap<>(); map.put("locations", Strings.join(repositories)); map.put("name", "ResolverValidator"); repository.setProperties(map); Processor registry = new Processor(); registry.addBasicPlugin(httpClient); repository.setRegistry(registry); repository.setReporter(this); Set<Resource> resources = getAllResources(repository); return validateResources(repository, resources); } }
public List<Resolution> validate() throws Exception { try (OSGiRepository repository = new OSGiRepository(); HttpClient httpClient = new HttpClient()) { Map<String, String> map = new HashMap<>(); map.put("locations", Strings.join(repositories)); map.put("name", "ResolverValidator"); repository.setProperties(map); Processor registry = new Processor(); registry.addBasicPlugin(httpClient); repository.setRegistry(registry); repository.setReporter(this); Set<Resource> resources = getAllResources(repository); return validateResources(repository, resources); } }