@ Override public void execute ( ) throws MojoExecutionException , MojoFailureException { ConfigHandler configHandler = new ConfigHandler ( this , this . session , this . execution ) ; configHandler . parseConfiguration ( ) ; getLog ( ) . debug ( "Parsed values for Android Lint invocation: " ) ; getLog ( ) . debug ( "failOnError:" + parsedFailOnError ) ; getLog ( ) . debug ( "skip:" + parsedSkip ) ; getLog ( ) . debug ( "legacy:" + parsedLegacy ) ; getLog ( ) . debug ( "quiet:" + parsedQuiet ) ; getLog ( ) . debug ( "ignoreWarnings:" + parsedIgnoreWarnings ) ; getLog ( ) . debug ( "warnAll:" + parsedWarnAll ) ; getLog ( ) . debug ( "warningsAsErrors:" + parsedWarningsAsErrors ) ; getLog ( ) . debug ( "config2:" + parsedConfig ) ; getLog ( ) . debug ( "fullPath:" + parsedFullPath ) ; getLog ( ) . debug ( "showAll:" + parsedShowAll ) ; getLog ( ) . debug ( "disableSourceLines:" + parsedDisableSourceLines ) ; getLog ( ) . debug ( "enablehtml: " + parsedEnableHtml ) ; getLog ( ) . debug ( "htmlOutputPath:" + parsedHtmlOutputPath ) ; getLog ( ) . debug ( "enableSimpleHtml: " + parsedEnableSimpleHtml ) ; getLog ( ) . debug ( "simpleHtmlOutputPath:" + parsedSimpleHtmlOutputPath ) ; getLog ( ) . debug ( "enableXml: " + parsedEnableXml ) ; getLog ( ) . debug ( "xmlOutputPath:" + parsedXmlOutputPath ) ; getLog ( ) . debug ( "sources:" + parsedSources ) ; getLog ( ) . debug ( "classpath:" + parsedClasspath ) ; getLog ( ) . debug ( "libraries:" + parsedLibraries ) ; if ( parsedSkip ) { getLog ( ) . info ( "Skipping lint analysis." ) ; } else { getLog ( ) . info ( "Performing lint analysis." ) ; if ( parsedLegacy ) { getLog ( ) . info ( "Using Lint from the Android SDK." ) ; executeWhenConfigured ( ) ; } else { getLog ( ) . info ( "Using Lint dependency library." ) ; runLint ( ) ; } } }
Execute the mojo by parsing the config and actually invoking the lint command from the Android SDK .