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

live.document.mavenplugin.method.AnalysePlSqlExt Maven / Gradle / Ivy

package live.document.mavenplugin.method;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class AnalysePlSqlExt {

    public static List findSqlFiles(String folder) {
        List results = new ArrayList<>();
        File file = new File(folder);
        if (file.isDirectory()) {
            File[] files = file.listFiles();
            for (File file1 : files) {
                results.addAll(findSqlFiles(file1.getAbsolutePath()));
            }
        } else if (file.isFile() && file.getName().endsWith(".sql") && !file.getName().endsWith("dml.sql")) {
            results.add(file.getAbsolutePath());
        }

        return results;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy