import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
-import java.util.HashSet;
-import java.util.Set;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.junit.JGitTestUtil;
private final Map<String, String> remotes;
private final Set<String> plusGroups;
private final Set<String> minusGroups;
- private List<RepoProject> projects;
- private List<RepoProject> filteredProjects;
+ private final List<RepoProject> projects;
+ private final List<RepoProject> filteredProjects;
+ private final IncludedFileReader includedReader;
+
private String defaultRemote;
private String defaultRevision;
- private IncludedFileReader includedReader;
private int xmlInRead;
private RepoProject currentProject;
* Read the xml file.
*
* @param inputStream
+ * @throws IOException
*/
public void read(InputStream inputStream) throws IOException {
xmlInRead++;
/**
* Getter for projects.
+ *
+ * @return projects list reference, never null
*/
public List<RepoProject> getProjects() {
return projects;
/**
* Getter for filterdProjects.
+ *
+ * @return filtered projects list reference, never null
*/
public List<RepoProject> getFilteredProjects() {
return filteredProjects;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
-import java.net.URI;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;
*
* @param reader
* @return this command
- * @since 3.5
+ * @since 4.0
*/
public RepoCommand setIncludedFileReader(IncludedFileReader reader) {
this.includedReader = reader;
/**
* Do the copy file action.
+ *
+ * @throws IOException
*/
public void copy() throws IOException {
File srcFile = new File(repo.getWorkTree(),
}
/**
- * Check if this sub repo is the ancestor of another sub repo.
+ * Check if this sub repo is the ancestor of given sub repo.
+ *
+ * @param that
+ * non null
+ * @return true if this sub repo is the ancestor of given sub repo.
*/
public boolean isAncestorOf(RepoProject that) {
return that.getPathWithSlash().startsWith(this.getPathWithSlash());