|
|
@ -36,8 +36,8 @@ public class SonarService {
|
|
|
|
@Value("${sonar.url}")
|
|
|
|
@Value("${sonar.url}")
|
|
|
|
String sonarUrl;
|
|
|
|
String sonarUrl;
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${sonar.token}")
|
|
|
|
// @Value("${sonar.token}")
|
|
|
|
String sonarToken;
|
|
|
|
// String sonarToken;
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${extract.path}")
|
|
|
|
@Value("${extract.path}")
|
|
|
|
String extractProgramPath;
|
|
|
|
String extractProgramPath;
|
|
|
@ -124,7 +124,7 @@ public class SonarService {
|
|
|
|
"-Dsonar.host.url=" + sonarUrl + " " +
|
|
|
|
"-Dsonar.host.url=" + sonarUrl + " " +
|
|
|
|
"-Dsonar.sourceEncoding=utf-8 " +
|
|
|
|
"-Dsonar.sourceEncoding=utf-8 " +
|
|
|
|
"-Dsonar.projectKey=" + key + " " +
|
|
|
|
"-Dsonar.projectKey=" + key + " " +
|
|
|
|
"-Dsonar.login=" + sonarToken + " " +
|
|
|
|
// "-Dsonar.login=" + sonarToken + " " +
|
|
|
|
"-Dsonar.java.binaries=./ " +
|
|
|
|
"-Dsonar.java.binaries=./ " +
|
|
|
|
"-Dsonar.projectBaseDir=" + projectPath;
|
|
|
|
"-Dsonar.projectBaseDir=" + projectPath;
|
|
|
|
log.info("projectPath:{},key:{}, command: {}", projectPath,key, command);
|
|
|
|
log.info("projectPath:{},key:{}, command: {}", projectPath,key, command);
|
|
|
|