fix(SonarService): h和other语言

master
youys 2 days ago
parent 00daba6d51
commit b26b392c27

@ -103,6 +103,30 @@ public class SonarService {
SystemUtil.ExecuteResp executeResp = SystemUtil.executeAndGetExitStatus(command);
log.info("c++: command:{}, result:{}", command, executeResp.getOutput());
});
concurrentHashMap.put(Constant.H, param -> {
String command = "sonar-scanner " +
"-Dsonar.host.url=" + sonarUrl + " " +
"-Dsonar.sourceEncoding=utf-8 " +
"-Dsonar.login=" + sonarToken + " " +
"-Dsonar.projectKey=" + param.getProjectKey() + " " +
"-Dsonar.projectBaseDir=" + param.getProjectPath();
SystemUtil.ExecuteResp executeResp = SystemUtil.executeAndGetExitStatus(command);
log.info("H语言 command: {},result:{}", command, executeResp.getOutput());
});
concurrentHashMap.put(Constant.OTHER, param -> {
String command = "sonar-scanner " +
"-Dsonar.host.url=" + sonarUrl + " " +
"-Dsonar.sourceEncoding=utf-8 " +
"-Dsonar.projectKey=" + param.getProjectKey() + " " +
"-Dsonar.login=" + sonarToken + " " +
"-Dsonar.projectBaseDir=" + param.getProjectPath();
SystemUtil.ExecuteResp executeResp = SystemUtil.executeAndGetExitStatus(command);
log.info("Other语言 command:{},result:{}", command, executeResp.getOutput());
});
}
/**
@ -202,6 +226,7 @@ public class SonarService {
/**
*
*
* @param language
* @return
*/

Loading…
Cancel
Save