/** Remove projects that are not in our desired groups. */ void removeNotInGroup() { Iterator<RepoProject> iter = filteredProjects.iterator(); while (iter.hasNext()) if (!inGroups(iter.next())) iter.remove(); }
RepoText.get().errorIncludeNotImplemented); read(is); } catch (Exception e) { throw new SAXException(MessageFormat.format( String path = filename.substring(0, index + 1) + name; try (InputStream is = new FileInputStream(path)) { read(is); } catch (IOException e) { throw new SAXException(MessageFormat.format(
.format(RepoText.get().errorNoFetch, remote)); remoteUrl = normalizeEmptyPath(baseUrl.resolve(fetch)); remoteUrls.put(remote, remoteUrl); removeNotInGroup(); removeOverlaps();
ManifestParser parser = new ManifestParser(includedReader, manifestPath, branch, baseUri, groupsParam, repo); parser.read(inputStream); filteredProjects = parser.getFilteredProjects(); } catch (IOException e) { throw new ManifestErrorException(e);
/** Remove projects that sits in a subdirectory of any other project. */ void removeOverlaps() { Collections.sort(filteredProjects); Iterator<RepoProject> iter = filteredProjects.iterator(); if (!iter.hasNext()) return; RepoProject last = iter.next(); while (iter.hasNext()) { RepoProject p = iter.next(); if (last.isAncestorOf(p)) iter.remove(); else last = p; } removeNestedCopyAndLinkfiles(); }
private void removeNestedCopyAndLinkfiles() { for (RepoProject proj : filteredProjects) { List<CopyFile> copyfiles = new ArrayList<>(proj.getCopyFiles()); proj.clearCopyFiles(); for (CopyFile copyfile : copyfiles) { if (!isNestedReferencefile(copyfile)) { proj.addCopyFile(copyfile); } } List<LinkFile> linkfiles = new ArrayList<>(proj.getLinkFiles()); proj.clearLinkFiles(); for (LinkFile linkfile : linkfiles) { if (!isNestedReferencefile(linkfile)) { proj.addLinkFile(linkfile); } } } }
this.defaultBranch = defaultBranch; this.rootRepo = rootRepo; this.baseUrl = normalizeEmptyPath(URI.create(baseUrl));
git = new Git(repo); ManifestParser parser = new ManifestParser( includedReader, path, branch, uri, groupsParam, repo); try { parser.read(inputStream); for (RepoProject proj : parser.getFilteredProjects()) { addSubmodule(proj.getUrl(), proj.getPath(),
/** Remove projects that sits in a subdirectory of any other project. */ void removeOverlaps() { Collections.sort(filteredProjects); Iterator<RepoProject> iter = filteredProjects.iterator(); if (!iter.hasNext()) return; RepoProject last = iter.next(); while (iter.hasNext()) { RepoProject p = iter.next(); if (last.isAncestorOf(p)) iter.remove(); else last = p; } removeNestedCopyAndLinkfiles(); }
private void removeNestedCopyAndLinkfiles() { for (RepoProject proj : filteredProjects) { List<CopyFile> copyfiles = new ArrayList<>(proj.getCopyFiles()); proj.clearCopyFiles(); for (CopyFile copyfile : copyfiles) { if (!isNestedReferencefile(copyfile)) { proj.addCopyFile(copyfile); } } List<LinkFile> linkfiles = new ArrayList<>(proj.getLinkFiles()); proj.clearLinkFiles(); for (LinkFile linkfile : linkfiles) { if (!isNestedReferencefile(linkfile)) { proj.addLinkFile(linkfile); } } } }
this.defaultBranch = defaultBranch; this.rootRepo = rootRepo; this.baseUrl = normalizeEmptyPath(URI.create(baseUrl));
ManifestParser parser = new ManifestParser(includedReader, manifestPath, branch, baseUri, groupsParam, repo); parser.read(inputStream); filteredProjects = parser.getFilteredProjects(); } catch (IOException e) { throw new ManifestErrorException(e);
.format(RepoText.get().errorNoFetch, remote)); remoteUrl = normalizeEmptyPath(baseUrl.resolve(fetch)); remoteUrls.put(remote, remoteUrl); removeNotInGroup(); removeOverlaps();
/** Remove projects that are not in our desired groups. */ void removeNotInGroup() { Iterator<RepoProject> iter = filteredProjects.iterator(); while (iter.hasNext()) if (!inGroups(iter.next())) iter.remove(); }
read(is); } catch (IOException e) { throw new SAXException(e);
/** Remove projects that are not in our desired groups. */ void removeNotInGroup() { Iterator<RepoProject> iter = filteredProjects.iterator(); while (iter.hasNext()) if (!inGroups(iter.next())) iter.remove(); }
RepoText.get().errorIncludeNotImplemented); read(is); } catch (Exception e) { throw new SAXException(MessageFormat.format( String path = filename.substring(0, index + 1) + name; try (InputStream is = new FileInputStream(path)) { read(is); } catch (IOException e) { throw new SAXException(MessageFormat.format(