@Description("List the current repositories") public void _repos(@SuppressWarnings("unused") reposOptions opts) { int n = 1; for (RepositoryPlugin repo : repos) { String location = ""; try { location = repo.getLocation(); } catch (Throwable e) { // Ignore } bnd.out.printf("%03d: %-20s %4s %-20s %s%n", n++, repo.getName(), repo.canWrite() ? "r/w" : "r/o", Descriptors.getShortName(repo.getClass().getName()), location); } }
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()); }
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()); }
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<>(); 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()); }
bnd.out.println("Writable repo is " + writable.getName() + " (" + writable.getLocation() + ")"); return; PutResult r = writable.put(new BufferedInputStream(new FileInputStream(file)), new RepositoryPlugin.PutOptions()); bnd.trace("put %s in %s (%s) into %s", source, writable.getName(), writable.getLocation(), r.artifact);