All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mockrunner.gen.proc.GeneratorUtil Maven / Gradle / Ivy

The newest version!
package com.mockrunner.gen.proc;

import java.io.File;
import java.util.Map;

public class GeneratorUtil
{
    public void addJavaSrcFiles(String rootDir, File dir, Map resultMap)
    {
        File[] fileList = dir.listFiles();
        for (File currentFile : fileList) {
            if (currentFile.isDirectory()) {
                addJavaSrcFiles(rootDir, currentFile, resultMap);
            } else if (currentFile.isFile() && currentFile.getName().endsWith(".java")) {
                String key = currentFile.getPath().substring(rootDir.length());
                resultMap.put(key, currentFile);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy