private boolean isSourceChanged()

in src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java [1375:1390]


    private boolean isSourceChanged(CompilerConfiguration compilerConfiguration, Compiler compiler)
            throws CompilerException, MojoExecutionException {
        Set<File> staleSources =
                computeStaleSources(compilerConfiguration, compiler, getSourceInclusionScanner(staleMillis));

        if (getLog().isDebugEnabled() || showCompilationChanges) {
            for (File f : staleSources) {
                if (showCompilationChanges) {
                    getLog().info("Stale source detected: " + f.getAbsolutePath());
                } else {
                    getLog().debug("Stale source detected: " + f.getAbsolutePath());
                }
            }
        }
        return !staleSources.isEmpty();
    }