Skip to content

Commit 63429ae

Browse files
SCANNERAPI-185 - Removed SonarQube-only logs and rename to SonarScanner
1 parent c0c757f commit 63429ae

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

api/src/main/java/org/sonarsource/scanner/api/internal/IsolatedLauncherFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ IsolatedLauncher createLauncher(final JarDownloader jarDownloader, final Classlo
8282
return objProxy;
8383
} catch (Exception e) {
8484
// Catch all other exceptions, which relates to reflection
85-
throw new ScannerException("Unable to execute SonarQube", e);
85+
throw new ScannerException("Unable to execute SonarScanner analysis", e);
8686
}
8787
});
8888
}

api/src/main/java/org/sonarsource/scanner/api/internal/ServerConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private ResponseBody callUrl(String url) throws IOException {
116116
}
117117
return response.body();
118118
} catch (Exception e) {
119-
logger.error(format("SonarQube server [%s] can not be reached", baseUrlWithoutTrailingSlash));
119+
logger.error(format("%s server [%s] can not be reached", url.toLowerCase().contains("sonarcloud") ? "SonarCloud" : "SonarQube", baseUrlWithoutTrailingSlash));
120120
throw e;
121121
}
122122
}

api/src/main/java/org/sonarsource/scanner/api/internal/SimulatedLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public synchronized Enumeration<Object> keys() {
6161
};
6262
props.putAll(p);
6363
try (OutputStream outputStream = Files.newOutputStream(Paths.get(filePath))) {
64-
props.store(outputStream, "# Generated by a SonarQube Scanner");
64+
props.store(outputStream, "# Generated by a SonarScanner");
6565
} catch (Exception e) {
6666
throw new IllegalStateException("Fail to export scanner properties", e);
6767
}

0 commit comments

Comments
 (0)