aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2024-04-30 16:59:35 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2024-05-03 13:07:43 +0200
commit69d6ba48c07b69ddd6cce7361573d3ab46517fb0 (patch)
tree954c1f79ac3cd40ab4e4451ae986d37fff4d42d4 /src/main
parent9eb22f219a4404e68a74f2d0de6a6818e34d6e50 (diff)
downloadsonar-scanner-cli-69d6ba48c07b69ddd6cce7361573d3ab46517fb0.tar.gz
sonar-scanner-cli-69d6ba48c07b69ddd6cce7361573d3ab46517fb0.zip
SCANCLI-84 Rename SonarScanner -> SonarScanner CLI
Diffstat (limited to 'src/main')
-rwxr-xr-xsrc/main/assembly/bin/sonar-scanner2
-rwxr-xr-xsrc/main/assembly/bin/sonar-scanner-debug4
-rw-r--r--src/main/assembly/bin/sonar-scanner-debug.bat4
-rw-r--r--src/main/assembly/bin/sonar-scanner.bat2
-rw-r--r--src/main/assembly/conf/sonar-scanner.properties13
-rw-r--r--src/main/java/org/sonarsource/scanner/cli/Main.java6
-rw-r--r--src/main/java/org/sonarsource/scanner/cli/SystemInfo.java2
7 files changed, 16 insertions, 17 deletions
diff --git a/src/main/assembly/bin/sonar-scanner b/src/main/assembly/bin/sonar-scanner
index 2d2c2cc..128143f 100755
--- a/src/main/assembly/bin/sonar-scanner
+++ b/src/main/assembly/bin/sonar-scanner
@@ -1,6 +1,6 @@
#!/usr/bin/env sh
#
-# SonarScanner Startup Script for Unix
+# SonarScanner CLI Startup Script for Unix
#
# Required ENV vars:
# JAVA_HOME - Location of Java's installation, optional if use_embedded_jre is set
diff --git a/src/main/assembly/bin/sonar-scanner-debug b/src/main/assembly/bin/sonar-scanner-debug
index dd45ab0..1a49c84 100755
--- a/src/main/assembly/bin/sonar-scanner-debug
+++ b/src/main/assembly/bin/sonar-scanner-debug
@@ -1,6 +1,6 @@
#!/usr/bin/env sh
#
-# SonarScanner Startup Script for Unix
+# SonarScanner CLI Startup Script for Unix
#
# Required ENV vars:
# JAVA_HOME - Location of Java's installation, optional if use_embedded_jre is set
@@ -10,7 +10,7 @@
SONAR_SCANNER_DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
-echo "Executing SonarScanner in Debug Mode"
+echo "Executing SonarScanner CLI in Debug Mode"
echo "SONAR_SCANNER_DEBUG_OPTS=\"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000\""
env SONAR_SCANNER_OPTS="$SONAR_SCANNER_OPTS" SONAR_SCANNER_DEBUG_OPTS="$SONAR_SCANNER_DEBUG_OPTS" "`dirname "$0"`"/sonar-scanner "$@"
diff --git a/src/main/assembly/bin/sonar-scanner-debug.bat b/src/main/assembly/bin/sonar-scanner-debug.bat
index 3021c01..aeaae59 100644
--- a/src/main/assembly/bin/sonar-scanner-debug.bat
+++ b/src/main/assembly/bin/sonar-scanner-debug.bat
@@ -1,4 +1,4 @@
-@REM SonarScanner Startup Script for Windows
+@REM SonarScanner CLI Startup Script for Windows
@REM
@REM Required ENV vars:
@REM JAVA_HOME - Location of Java's installation, optional if use_embedded_jre is set
@@ -8,6 +8,6 @@
@setlocal
@set SONAR_SCANNER_DEBUG_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-echo "Executing SonarScanner in Debug Mode"
+echo "Executing SonarScanner CLI in Debug Mode"
echo "SONAR_SCANNER_DEBUG_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
@call "%~dp0"sonar-scanner.bat %*
diff --git a/src/main/assembly/bin/sonar-scanner.bat b/src/main/assembly/bin/sonar-scanner.bat
index fdfbfd9..654137d 100644
--- a/src/main/assembly/bin/sonar-scanner.bat
+++ b/src/main/assembly/bin/sonar-scanner.bat
@@ -1,4 +1,4 @@
-@REM SonarScanner Startup Script for Windows
+@REM SonarScanner CLI Startup Script for Windows
@REM
@REM Required ENV vars:
@REM JAVA_HOME - Location of Java's installation, optional if use_embedded_jre is set
diff --git a/src/main/assembly/conf/sonar-scanner.properties b/src/main/assembly/conf/sonar-scanner.properties
index b30e841..8bf8356 100644
--- a/src/main/assembly/conf/sonar-scanner.properties
+++ b/src/main/assembly/conf/sonar-scanner.properties
@@ -1,9 +1,8 @@
-#Configure here general information about the environment, such as SonarQube server connection details for example
-#No information about specific project should appear here
+# Configure here general information about the environment, such as the server connection details for example
+# No information about specific project should appear here
-#----- Default SonarQube server
-#sonar.host.url=http://localhost:9000
-
-#----- Default source code encoding
-#sonar.sourceEncoding=UTF-8
+#----- SonarQube server URL (default to SonarCloud)
+#sonar.host.url=https://mycompany.com/sonarqube
+#sonar.scanner.proxyHost=myproxy.mycompany.com
+#sonar.scanner.proxyPort=8002
diff --git a/src/main/java/org/sonarsource/scanner/cli/Main.java b/src/main/java/org/sonarsource/scanner/cli/Main.java
index f9a613d..8ad0c05 100644
--- a/src/main/java/org/sonarsource/scanner/cli/Main.java
+++ b/src/main/java/org/sonarsource/scanner/cli/Main.java
@@ -79,7 +79,7 @@ public class Main {
}
} catch (Throwable e) {
displayExecutionResult(stats, "FAILURE");
- showError("Error during SonarScanner execution", e, cli.isDebugEnabled());
+ showError("Error during SonarScanner CLI execution", e, cli.isDebugEnabled());
status = isUserError(e) ? Exit.USER_ERROR : Exit.INTERNAL_ERROR;
} finally {
exit.exit(status);
@@ -97,7 +97,7 @@ public class Main {
private void checkSkip(Properties properties) {
if ("true".equalsIgnoreCase(properties.getProperty(ScanProperties.SKIP))) {
- logger.info("SonarScanner analysis skipped");
+ logger.info("SonarScanner CLI analysis skipped");
exit.exit(Exit.SUCCESS);
}
}
@@ -155,7 +155,7 @@ public class Main {
private void suggestDebugMode() {
if (!cli.isEmbedded()) {
- logger.error("Re-run SonarScanner using the -X switch to enable full debug logging.");
+ logger.error("Re-run SonarScanner CLI using the -X switch to enable full debug logging.");
}
}
diff --git a/src/main/java/org/sonarsource/scanner/cli/SystemInfo.java b/src/main/java/org/sonarsource/scanner/cli/SystemInfo.java
index 5aee435..30abee5 100644
--- a/src/main/java/org/sonarsource/scanner/cli/SystemInfo.java
+++ b/src/main/java/org/sonarsource/scanner/cli/SystemInfo.java
@@ -39,7 +39,7 @@ class SystemInfo {
}
static void print(Logs logger) {
- logger.info("SonarScanner " + ScannerVersion.version());
+ logger.info("SonarScanner CLI " + ScannerVersion.version());
logger.info(java());
logger.info(os());
String scannerOpts = system.getenv("SONAR_SCANNER_OPTS");