public Hashtable collectFilesInPath(String classPath) { Hashtable result= collectFilesInRoots(splitClassPath(classPath)); return result; }
void gatherFiles(File classRoot, String classFileName, Hashtable<String,String> result) { File thisRoot= new File(classRoot, classFileName); if (thisRoot.isFile()) { if (isTestClass(classFileName)) { String className= classNameFromFile(classFileName); result.put(className, className); } return; } String[] contents= thisRoot.list(); if (contents != null) { for (int i= 0; i < contents.length; i++) gatherFiles(classRoot, classFileName+File.separatorChar+contents[i], result); } }
Hashtable collectFilesInRoots(Vector roots) { Hashtable<String,String> result= new Hashtable<String,String>(100); Enumeration e= roots.elements(); while (e.hasMoreElements()) gatherFiles(new File((String)e.nextElement()), "", result); return result; }
public Enumeration collectTests() { String classPath= System.getProperty("java.class.path"); Hashtable result = collectFilesInPath(classPath); return result.elements(); }
void gatherFiles(File classRoot, String classFileName, Hashtable<String,String> result) { File thisRoot= new File(classRoot, classFileName); if (thisRoot.isFile()) { if (isTestClass(classFileName)) { String className= classNameFromFile(classFileName); result.put(className, className); } return; } String[] contents= thisRoot.list(); if (contents != null) { for (int i= 0; i < contents.length; i++) gatherFiles(classRoot, classFileName+File.separatorChar+contents[i], result); } }
Hashtable collectFilesInRoots(Vector roots) { Hashtable result= new Hashtable(100); Enumeration e= roots.elements(); while (e.hasMoreElements()) gatherFiles(new File((String)e.nextElement()), "", result); return result; }
public Enumeration collectTests() { String classPath= System.getProperty("java.class.path"); Hashtable result = collectFilesInPath(classPath); return result.elements(); }
void gatherFiles(File classRoot, String classFileName, Hashtable result) { File thisRoot= new File(classRoot, classFileName); if (thisRoot.isFile()) { if (isTestClass(classFileName)) { String className= classNameFromFile(classFileName); result.put(className, className); } return; } String[] contents= thisRoot.list(); if (contents != null) { for (int i= 0; i < contents.length; i++) gatherFiles(classRoot, classFileName+File.separatorChar+contents[i], result); } }
public Hashtable collectFilesInPath(String classPath) { Hashtable result= collectFilesInRoots(splitClassPath(classPath)); return result; }
Hashtable collectFilesInRoots(Vector roots) { Hashtable<String,String> result= new Hashtable<String,String>(100); Enumeration e= roots.elements(); while (e.hasMoreElements()) gatherFiles(new File((String)e.nextElement()), "", result); return result; }
public Enumeration collectTests() { String classPath= System.getProperty("java.class.path"); Hashtable result = collectFilesInPath(classPath); return result.elements(); }
public Hashtable collectFilesInPath(String classPath) { Hashtable result= collectFilesInRoots(splitClassPath(classPath)); return result; }