private RepositoryPlugin findRepo(String name) { for (RepositoryPlugin repo : repos) { if (repo.getName().equals(name)) return repo; } return null; }
boolean match(RepositoryPlugin repo) { if (patterns == null) return true; for (Pattern pattern : patterns) { if (pattern.matcher(repo.getName()) .matches()) return true; } return false; } }
boolean match(RepositoryPlugin repo) { if (patterns == null) return true; for (Pattern pattern : patterns) { if (pattern.matcher(repo.getName()) .matches()) return true; } return false; } }
public RepositoryPlugin getRepository(String repo) throws Exception { for (RepositoryPlugin r : getRepositories()) { if (repo.equals(r.getName())) { return r; } } return null; }
public RepositoryPlugin getRepository(String repo) { for (RepositoryPlugin r : getRepositories()) { if (repo.equals(r.getName())) { return r; } } return null; }
public RepositoryPlugin getRepository(String repo) throws Exception { for (RepositoryPlugin r : getRepositories()) { if (repo.equals(r.getName())) { return r; } } return null; }
public RepositoryPlugin getRepository(String repo) { for (RepositoryPlugin r : getRepositories()) { if (repo.equals(r.getName())) { return r; } } return null; }
public String _repos(@SuppressWarnings("unused") String args[]) throws Exception { List<RepositoryPlugin> repos = getPlugins(RepositoryPlugin.class); List<String> names = new ArrayList<>(); for (RepositoryPlugin rp : repos) names.add(rp.getName()); return join(names, ", "); }
public String _repos(@SuppressWarnings("unused") String args[]) throws Exception { List<RepositoryPlugin> repos = getPlugins(RepositoryPlugin.class); List<String> names = new ArrayList<String>(); for (RepositoryPlugin rp : repos) names.add(rp.getName()); return join(names, ", "); }
public String _repos(@SuppressWarnings("unused") String args[]) throws Exception { List<RepositoryPlugin> repos = getPlugins(RepositoryPlugin.class); List<String> names = new ArrayList<>(); for (RepositoryPlugin rp : repos) names.add(rp.getName()); return join(names, ", "); }
public String _repos(@SuppressWarnings("unused") String args[]) throws Exception { List<RepositoryPlugin> repos = getPlugins(RepositoryPlugin.class); List<String> names = new ArrayList<String>(); for (RepositoryPlugin rp : repos) names.add(rp.getName()); return join(names, ", "); }
public String _repos(String args[]) throws Exception { List<RepositoryPlugin> repos = getPlugins(RepositoryPlugin.class); List<String> names = new ArrayList<String>(); for (RepositoryPlugin rp : repos) names.add(rp.getName()); return join(names, ", "); }
public String _repos(String args[]) throws Exception { List<RepositoryPlugin> repos = getPlugins(RepositoryPlugin.class); List<String> names = new ArrayList<String>(); for (RepositoryPlugin rp : repos) names.add(rp.getName()); return join(names, ", "); }
public String _repos(@SuppressWarnings("unused") String args[]) throws Exception { List<RepositoryPlugin> repos = getPlugins(RepositoryPlugin.class); List<String> names = new ArrayList<String>(); for (RepositoryPlugin rp : repos) names.add(rp.getName()); return join(names, ", "); }
public static Element getTree(RepositoryPlugin repo) throws Exception { List<Element> programs = new ArrayList<Element>(); for (String bsn : repo.list(null)) { List<Element> versions = new ArrayList<Element>(); for (Version version : repo.versions(bsn)) { versions.add(new Element(Type.VERSION, version.toString())); } programs.add(new Element(Type.PROGRAM, bsn, versions, Delta.MINOR, Delta.MAJOR, null)); } return new Element(Type.REPO, repo.getName(), programs, Delta.MINOR, Delta.MAJOR, repo.getLocation()); }
private RepositoryPlugin getBaselineRepo() { String repoName = getProperty(Constants.BASELINEREPO); if (repoName == null) return getReleaseRepo(); List<RepositoryPlugin> repos = getPlugins(RepositoryPlugin.class); for (RepositoryPlugin r : repos) { if (r.getName().equals(repoName)) return r; } error("Could not find -baselinerepo %s", repoName); return null; }
public static Element getTree(RepositoryPlugin repo) throws Exception { List<Element> programs = new ArrayList<>(); for (String bsn : repo.list(null)) { List<Element> versions = new ArrayList<>(); for (Version version : repo.versions(bsn)) { versions.add(new Element(Type.VERSION, version.toString())); } programs.add(new Element(Type.PROGRAM, bsn, versions, Delta.MINOR, Delta.MAJOR, null)); } return new Element(Type.REPO, repo.getName(), programs, Delta.MINOR, Delta.MAJOR, repo.getLocation()); }
public static Element getTree(RepositoryPlugin repo) throws Exception { List<Element> programs = new ArrayList<Element>(); for (String bsn : repo.list(null)) { List<Element> versions = new ArrayList<Element>(); for (Version version : repo.versions(bsn)) { versions.add(new Element(Type.VERSION, version.toString())); } programs.add(new Element(Type.PROGRAM, bsn, versions, Delta.MINOR, Delta.MAJOR, null)); } return new Element(Type.REPO, repo.getName(), programs, Delta.MINOR, Delta.MAJOR, repo.getLocation()); }
private RepositoryPlugin getBaselineRepo() { String repoName = getProperty(Constants.BASELINEREPO); if (repoName == null) return getReleaseRepo(); List<RepositoryPlugin> repos = getPlugins(RepositoryPlugin.class); for (RepositoryPlugin r : repos) { if (r.getName().equals(repoName)) return r; } error("Could not find -baselinerepo %s", repoName); return null; }
private void install(File f, RepositoryPlugin repo, Attrs value) throws Exception { try (Processor p = new Processor()) { p.getProperties() .putAll(value); PutOptions options = new PutOptions(); options.context = p; try (InputStream in = IO.stream(f)) { repo.put(in, options); } catch (Exception e) { exception(e, "Cannot install %s into %s because %s", f, repo.getName(), e); } } }