Class ExcludedMissingLicenseFile
- java.lang.Object
-
- se.ayoy.maven.plugins.licenseverifier.MissingLicenseInfo.ExcludedMissingLicenseFile
-
public class ExcludedMissingLicenseFile extends Object
Parses the file for exclusions of missing license information.
-
-
Constructor Summary
Constructors Constructor Description ExcludedMissingLicenseFile(String filePathString, org.apache.maven.plugin.logging.Log log)Initialize the instance from a file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisExcluded(org.apache.maven.artifact.Artifact artifact)Check if a certain artifact with missing license information is excluded.booleanisExcluded(AyoyArtifact artifact)Check if a certain artifact with missing license information is excluded.
-
-
-
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.
-
-