protected void doExecute(RepositoryAdmin admin) throws Exception { for (String bundle : bundles) { String[] target = getTarget(bundle); Resource resource = selectNewestVersion(searchRepository(admin, target[0], target[1])); if (resource == null) { System.err.println("Unknown bundle and/or version: " + target[0]); } else { URI srcURL = (URI) resource.getProperties().get(Resource.SOURCE_URI); if (srcURL != null) { FileUtil.downloadSource(System.out, System.err, srcURL.toURL(), localDir, extract); } else { System.err.println("Missing source URL: " + target[0]); } } } }
protected void doExecute(RepositoryAdmin admin) throws Exception { for (String bundle : bundles) { String[] target = getTarget(bundle); Resource resource = selectNewestVersion(searchRepository(admin, target[0], target[1])); if (resource == null) { System.err.println("Unknown bundle and/or version: " + target[0]); } else { URI srcURL = (URI) resource.getProperties().get(Resource.SOURCE_URI); if (srcURL != null) { FileUtil.downloadSource(System.out, System.err, srcURL.toURL(), localDir, extract); } else { System.err.println("Missing source URL: " + target[0]); } } } }
protected void doExecute(RepositoryAdmin admin) throws Exception { for (String bundle : bundles) { String[] target = getTarget(bundle); Resource resource = selectNewestVersion(searchRepository(admin, target[0], target[1])); if (resource == null) { System.err.println("Unknown bundle and/or version: " + target[0]); } else { URI srcURL = (URI) resource.getProperties().get(Resource.SOURCE_URI); if (srcURL != null) { FileUtil.downloadSource(System.out, System.err, srcURL.toURL(), localDir, extract); } else { System.err.println("Missing source URL: " + target[0]); } } } }