Interface CallbackWithFailure

All Superinterfaces:
com.mycila.maven.plugin.license.Callback
All Known Implementing Classes:
LicenseCheckMojo, LicenseFormatMojo

public interface CallbackWithFailure extends com.mycila.maven.plugin.license.Callback
Extension of the Mycila Callback that additionally tracks whether any license violation occurred and which files were affected during a license check or format run.

Inlined from hierynomus/license-gradle-plugin.

Since:
1.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns all files that were affected (missing header or reformatted, depending on the concrete implementation).
    boolean
    Returns true if at least one file triggered a header violation during processing.

    Methods inherited from interface com.mycila.maven.plugin.license.Callback

    onExistingHeader, onHeaderNotFound, onUnknownFile
  • Method Details

    • hadFailure

      boolean hadFailure()
      Returns true if at least one file triggered a header violation during processing.
      Returns:
      true when there were failures
    • getAffected

      Collection<File> getAffected()
      Returns all files that were affected (missing header or reformatted, depending on the concrete implementation).
      Returns:
      the affected files, never null