private boolean hasNewFile()

in src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java [1582:1601]


    private boolean hasNewFile(File classPathEntry, Date buildStartTime) {
        if (!classPathEntry.exists()) {
            return false;
        }

        if (classPathEntry.isFile()) {
            return classPathEntry.lastModified() >= buildStartTime.getTime()
                    && fileExtensions.contains(FileUtils.getExtension(classPathEntry.getName()));
        }

        File[] children = classPathEntry.listFiles();

        for (File child : children) {
            if (hasNewFile(child, buildStartTime)) {
                return true;
            }
        }

        return false;
    }