public Set getResourcePaths()

in src/main/java/org/apache/sling/maven/jspc/JspCServletContext.java [304:331]


    public Set<String> getResourcePaths(String path) {
        Set<String> thePaths = new HashSet<>();

        if (!path.endsWith("/")) {
            path += "/";
        }

        String basePath = getRealPath(path);
        if (basePath == null) {
            return (thePaths);
        }

        File theBaseDir = new File(basePath);
        if (!theBaseDir.exists() || !theBaseDir.isDirectory()) {
            return (thePaths);
        }

        for (String theFile : theBaseDir.list()) {
            File testFile = new File(basePath + File.separator + theFile);
            if (testFile.isFile()) {
                thePaths.add(path + theFile);
            } else if (testFile.isDirectory()) {
                thePaths.add(path + theFile + "/");
            }
        }

        return thePaths;
    }