private void checkForWatchPhrases()

in src/main/java/org/apache/maven/plugin/patch/ApplyMojo.java [552:565]


    private void checkForWatchPhrases( String output )
        throws MojoExecutionException
    {
        for ( Object failurePhrase : failurePhrases )
        {
            String phrase = (String) failurePhrase;

            if ( output.contains( phrase ) )
            {
                throw new MojoExecutionException( "Failed to apply patches (detected watch-phrase: \'" + phrase
                    + "\' in output). " + "If this is in error, configure the patchFailureWatchPhrases parameter." );
            }
        }
    }