package com.perforce.cvs.parser; import java.io.File; import java.util.ArrayList; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class RcsFileFinder { private Logger logger = LoggerFactory.getLogger(RcsFileFinder.class); private int count = 0; List<File> files = new ArrayList<File>(); public RcsFileFinder(String path) { findFiles(path); } private void findFiles(String path) { File base = new File(path); if (!base.exists()) { logger.warn("CVSROOT does not exist: " + path); return; } File[] list = base.listFiles(); for (File f : list) { if (f.isDirectory()) { if (!"CVSROOT".equals(f.getName())) { findFiles(f.getAbsolutePath()); } } else { if (f.getName().endsWith(",v")) { files.add(f); logger.debug("file: " + f.getAbsolutePath()); count++; System.out.print("Found: " + count + "\r"); } } } } public List<File> getFiles() { return files; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#6 | 12462 | Paul Allen | Ignore 12407 12408 12418 12438 12440 12441 12442 | ||
#5 | 12455 | Paul Allen | Merging 12386 (Ignore RcsFileFinder fix) | ||
#4 | 12453 | Paul Allen | Ignore 12339 | ||
#3 | 12452 | Paul Allen | Ignore 12334 | ||
#2 | 12448 | Paul Allen | Ignore change 12260 | ||
#1 | 12446 | Paul Allen | Branching using p4convert-rusty | ||
//guest/perforce_software/p4convert/src/com/perforce/cvs/parser/RcsFileFinder.java | |||||
#2 | 11186 | Paul Allen |
Support standard command line arguments. Important change please note... @rjackson @nmorse The change was needed to extend the current features like --info and --user for CVS and future SCM support. Please check the documentation and CLI usage for the new usage. - CVS support for --users - Unit tests for CLI arguments Example: standard usage. java -jar p4convert.jar --config=myFile.cfg Example: generate a CVS configuration file. java -jar p4convert.jar --type=CVS --default Example: report Subversion repository usage. java -jar p4convert.jar --type=SVN --repo=/path/to/repo.dump --info |
||
#1 | 9807 | Paul Allen | Initial import of p4-convert (from change 894340) |