protected void validateConfiguration ( String ... params ) throws MojoFailureException { if ( StringUtils . isNotBlank ( argLine ) && MAVEN_DISALLOWED_PATTERN . matcher ( argLine ) . find ( ) ) { throw new MojoFailureException ( "The argLine doesn't match allowed pattern." ) ; } if ( params != null && params . length > 0 ) { for ( String p : params ) { if ( StringUtils . isNotBlank ( p ) && MAVEN_DISALLOWED_PATTERN . matcher ( p ) . find ( ) ) { throw new MojoFailureException ( "The '" + p + "' value doesn't match allowed pattern." ) ; } } } }
Validates plugin configuration . Throws exception if configuration is not valid .