org.universAAL.support.directives.checks
Class LicenseHeaderCheckFix

Package class diagram package LicenseHeaderCheckFix
java.lang.Object
  extended by org.universAAL.support.directives.checks.LicenseHeaderCheckFix
All Implemented Interfaces:
APICheck, APIFixableCheck, SourceChecker

public class LicenseHeaderCheckFix
extends Object
implements APIFixableCheck, SourceChecker

Check all the code has a valid ASL header.

Author:
amedrano

Nested Class Summary
static class LicenseHeaderCheckFix.CommentParserState
           
 
Constructor Summary
LicenseHeaderCheckFix()
           
 
Method Summary
 boolean check(org.apache.maven.project.MavenProject mavenproject, org.apache.maven.plugin.logging.Log log)
          
 void fix(org.apache.maven.project.MavenProject mavenProject, org.apache.maven.plugin.logging.Log log)
          
 boolean passesTest(File sourceFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicenseHeaderCheckFix

public LicenseHeaderCheckFix()
Method Detail

check

public boolean check(org.apache.maven.project.MavenProject mavenproject,
                     org.apache.maven.plugin.logging.Log log)
              throws org.apache.maven.plugin.MojoExecutionException,
                     org.apache.maven.plugin.MojoFailureException

Specified by:
check in interface APICheck
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

fix

public void fix(org.apache.maven.project.MavenProject mavenProject,
                org.apache.maven.plugin.logging.Log log)
         throws org.apache.maven.plugin.MojoExecutionException,
                org.apache.maven.plugin.MojoFailureException

Specified by:
fix in interface APIFixableCheck
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

passesTest

public boolean passesTest(File sourceFile)
Specified by:
passesTest in interface SourceChecker


Copyright © 2014 universAAL Consortium. All Rights Reserved.