}
/**
* 获取所有文件列表
* @param rootFile
* @param fileList
* @throws IOException
*/
public static List<String> listFiles(File rootFile,List<String> fileList) throws IOException{
File[] allFiles = rootFile.listFiles();
for(File file : allFiles){
if(file.isDirectory()){
listFiles(file, fileList);
}else{
String path = file.getCanonicalPath();
String clazz = path.substring(path.indexOf("classes")+8);
fileList.add(clazz.replace("//", ".").substring(0,clazz.lastIndexOf(".")));
}
}
return fileList;
}