protected void doExecute(RepositoryAdmin admin) throws Exception { for (String bundle : bundles) { String[] target = getTarget(bundle); Resource[] resources = searchRepository(admin, target[0], target[1]); if (resources == null) { System.err.println("Unknown bundle and/or version: " + target[0]); } else { for (int resIdx = 0; resIdx < resources.length; resIdx++) { if (resIdx > 0) { System.out.println(""); } printResource(System.out, resources[resIdx]); } } } }
private void printResource(PrintStream out, Resource resource) { if (out != null && resource != null) { String resourceId = getResourceId(resource); printUnderline(out, resourceId.length()); out.println(resourceId); printUnderline(out, resourceId.length());
private void printResource(PrintStream out, Resource resource) printUnderline(out, resource.getPresentationName().length()); out.println(resource.getPresentationName()); printUnderline(out, resource.getPresentationName().length());
private void printResource(PrintStream out, Resource resource) { if (out != null && resource != null) { String resourceId = getResourceId(resource); printUnderline(out, resourceId.length()); out.println(resourceId); printUnderline(out, resourceId.length());
protected void doExecute(RepositoryAdmin admin) throws Exception { for (String bundle : bundles) { String[] target = getTarget(bundle); Resource[] resources = searchRepository(admin, target[0], target[1]); if (resources == null) { System.err.println("Unknown bundle and/or version: " + target[0]); } else { for (int resIdx = 0; resIdx < resources.length; resIdx++) { if (resIdx > 0) { System.out.println(""); } printResource(System.out, resources[resIdx]); } } } }
protected void doExecute(RepositoryAdmin admin) throws Exception { for (String bundle : bundles) { String[] target = getTarget(bundle); Resource[] resources = searchRepository(admin, target[0], target[1]); if (resources == null) { System.err.println("Unknown bundle and/or version: " + target[0]); } else { for (int resIdx = 0; resIdx < resources.length; resIdx++) { if (resIdx > 0) { System.out.println(""); } printResource(System.out, resources[resIdx]); } } } }