Class ExcludedMissingLicenseFile


  • public class ExcludedMissingLicenseFile
    extends Object
    Parses the file for exclusions of missing license information.
    • Constructor Detail

      • ExcludedMissingLicenseFile

        public ExcludedMissingLicenseFile​(String filePathString,
                                          org.apache.maven.plugin.logging.Log log)
                                   throws FileNotFoundException,
                                          org.apache.maven.plugin.MojoExecutionException
        Initialize the instance from a file.
        Parameters:
        filePathString - The path to the file.
        log - The log instance to be able to log.
        Throws:
        FileNotFoundException - thrown when the file could not be found.
        org.apache.maven.plugin.MojoExecutionException - thrown when something goes wrong during initialization.
    • Method Detail

      • isExcluded

        public boolean isExcluded​(AyoyArtifact artifact)
        Check if a certain artifact with missing license information is excluded.
        Parameters:
        artifact - the artifact.
        Returns:
        true if excluded.
      • isExcluded

        public boolean isExcluded​(org.apache.maven.artifact.Artifact artifact)
        Check if a certain artifact with missing license information is excluded.
        Parameters:
        artifact - the artifact.
        Returns:
        true if excluded.