protected final void validateForMSBuild ( ) throws MojoExecutionException { if ( ! MSBuildPackaging . isValid ( mavenProject . getPackaging ( ) ) ) { throw new MojoExecutionException ( "Please set packaging to one of " + MSBuildPackaging . validPackaging ( ) ) ; } findMSBuild ( ) ; validateProjectFile ( ) ; platforms = MojoHelper . validatePlatforms ( platforms ) ; }
Check the Mojo configuration provides sufficient data to construct an MSBuild command line .