*
* @throws MojoExecutionException An exception occurring during the execution of a plugin.
*/
public void execute() throws MojoExecutionException {
Vcs activeVcs = Vcs.fromString(this.vcs);
if (activeVcs == null){
getLog().error("VCS has not been set. Please set <vcs> parameter to the correct VCS.");
getLog().error("Currently supported values: SVN, GIT, HG");
return;
} else {
getLog().info(String.format("Maven Quicktag Plugin running with %s version control system.", activeVcs));
}
VcsInfoGatherer vcsInfoGatherer = activeVcs.getVcsInfoGatherer();
if (vcsBinaryPath!= null ) {
System.out.println("---"+vcsBinaryPath.getClass());
getLog().debug(String.format("Using %s for vcs binary", vcsBinaryPath));
vcsInfoGatherer.setVcsBinaryPath(vcsBinaryPath);