plugin:AbstractCheckMojo: include ruleset version on log line

This commit is contained in:
Paul Campbell 2017-02-08 09:55:29 +00:00
parent 87f74dec16
commit e951d2c99b

View file

@ -107,8 +107,9 @@ public abstract class AbstractCheckMojo extends AbstractMojo {
val configLocation = val configLocation =
MojoExecutor.element(CONFIG_LOCATION, String.format("net/kemitix/checkstyle-%s.xml", level)); MojoExecutor.element(CONFIG_LOCATION, String.format("net/kemitix/checkstyle-%s.xml", level));
getLog().info( getLog().info(String.format("Running Checkstyle %s (sevntu: %s) with ruleset %s (%s)", checkstyleVersion,
String.format("Running Checkstyle %s (sevntu: %s) with %s", checkstyleVersion, sevntuVersion, level)); sevntuVersion, level, rulesetVersion
));
MojoExecutor.executeMojo(checkstylePlugin, "check", MojoExecutor.configuration(configLocation), MojoExecutor.executeMojo(checkstylePlugin, "check", MojoExecutor.configuration(configLocation),
MojoExecutor.executionEnvironment(mavenProject, mavenSession, pluginManager) MojoExecutor.executionEnvironment(mavenProject, mavenSession, pluginManager)
); );