
com.codegik.gitflow.command.MvnCommandExecutor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gitflow-maven-plugin
Show all versions of gitflow-maven-plugin
Source code version manager
The newest version!
package com.codegik.gitflow.command;
import org.apache.maven.plugin.logging.Log;
import org.codehaus.plexus.util.Os;
import org.codehaus.plexus.util.StringUtils;
import org.codehaus.plexus.util.cli.Commandline;
public class MvnCommandExecutor extends CommandExecutor {
private Commandline cmd;
private Log log;
public MvnCommandExecutor(Log log) {
this.log = log;
this.cmd = new Commandline();
if (StringUtils.isBlank(cmd.getExecutable())) {
cmd.setExecutable("mvn" + (Os.isFamily(Os.FAMILY_WINDOWS) ? ".bat" : ""));
}
}
@Override
protected Commandline getCommandline() {
return cmd;
}
@Override
protected Log getLog() {
return log;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy