test
educoder 4 years ago
parent c95eb3fc6d
commit 7d587c15bf

@ -39,25 +39,25 @@ public class SonarService {
String savePath = zipSavePath + zipFilename; String savePath = zipSavePath + zipFilename;
//1. 下载文件 //1. 下载文件
// if (index==1) { if (index==1) {
// download(zipUrl, savePath); download(zipUrl, savePath);
// } }
//2. 解压目录 //2. 解压目录
String extractPath = zipSavePath + key; String extractPath = zipSavePath + key;
// if (index==1) { if (index==1) {
// extract(savePath, extractPath); extract(savePath, extractPath);
// } }
//3. 执行检测 //3. 执行检测
String subPath = "/" + SystemUtil.executeAndGetExitStatus("cd " + extractPath + " && ls | head -1").getOutput(); String subPath = "/" + SystemUtil.executeAndGetExitStatus("cd " + extractPath + " && ls | head -1").getOutput();
// if (index != 1) { if (index != 1) {
// subPath += "/毕业设计项目个人开发代码"; subPath += "/毕业设计项目个人开发代码";
//// subPath += "/个人"; // subPath += "/个人";
// } else { } else {
// subPath += "/毕业设计项目完整代码"; subPath += "/毕业设计项目完整代码";
//// subPath += "/完整"; // subPath += "/完整";
// } }
log.info("scan zipSavePath: {}, zipFilename: {}, savePath: {}, extractPath: {}, subPath: {}", zipSavePath, zipFilename, savePath, extractPath, subPath); log.info("scan zipSavePath: {}, zipFilename: {}, savePath: {}, extractPath: {}, subPath: {}", zipSavePath, zipFilename, savePath, extractPath, subPath);

Loading…
Cancel
Save