don't bb, show me the code!
import com.my.mvc.app.common.exception.ShellProcessExecException; import com.my.mvc.app.common.helper.NamedThreadFactory; import lombok.extern.log4j.Log4j2; import org.apache.commons.io.FileUtils; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.Charset; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * 功能描述: Shell命令运行工具类封装 **/ @Log4j2 publicclass ShellCommandExecUtil {/** *@see #runShellCommandSync(String, String[], Charset, String)*/publicstaticint runShellCommandSync(String baseShellDir, String[] cmd, Charset outputCharset)throws IOException {return runShellCommandSync(baseShellDir, cmd, outputCharset,null); }/** * 真正运行shell命令 * *@param baseShellDir 运行命令所在目录(先切换到该目录后再运行命令) *@param cmd 命令数组 *@param outputCharset 日志输出字符集,一般windows为GBK, l