java编码问题
ProcessBuilder指令执行
windows
cmdList.add("cmd");
cmdList.add("/c");
String driveLetter = this.getClass().getResource(StringUtils.EMPTY).getPath().substring(1, 2);
projectPath = driveLetter + ":" + projectPath;
String cmd = driveLetter + ": && cd " + projectPath + " && " + "scrapyd-deploy --build-egg=" + eggFileName;
cmdList.add(cmd);
linux
cmdList.add("/bin/bash");
cmdList.add("-c");
cmdList.add("cd " + projectPath + " && scrapyd-deploy --build-egg=" + eggFileName);
注意第一个必须是指令,其他作为参数传递。
最后将该list汇总成一条指令:
cmdList.toArray(new String[0])
euraka相关问题
@FeignClient声明的接口和接口实现,参数都要加上RequestBody
maven编译相关问题汇总
1、Could not find artifact in maven-public 但是release里面有,下载了还报异常。是因为仓库缺少pom文件