aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2017-02-28 17:50:15 +0100
committerDuarte Meneses <duarte.meneses@sonarsource.com>2017-03-01 10:05:52 +0100
commite95940e6698b9a79759616e73813ccdb3ba382d7 (patch)
tree8089e5917273f3aeb7f263026986bef20ea52c4a /src/main
parent0976c9ff9cf395e366d7ac7614b101cb6ed004a3 (diff)
downloadsonar-scanner-cli-e95940e6698b9a79759616e73813ccdb3ba382d7.tar.gz
sonar-scanner-cli-e95940e6698b9a79759616e73813ccdb3ba382d7.zip
SQSCANNER-37 Fix agent in network connections
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/sonarsource/scanner/cli/ScannerFactory.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/sonarsource/scanner/cli/ScannerFactory.java b/src/main/java/org/sonarsource/scanner/cli/ScannerFactory.java
index 1a0af04..04a6684 100644
--- a/src/main/java/org/sonarsource/scanner/cli/ScannerFactory.java
+++ b/src/main/java/org/sonarsource/scanner/cli/ScannerFactory.java
@@ -32,7 +32,9 @@ class ScannerFactory {
}
EmbeddedScanner create(Properties props) {
- return EmbeddedScanner.create(new DefaultLogOutput()).addGlobalProperties(props);
+ return EmbeddedScanner.create(new DefaultLogOutput())
+ .addGlobalProperties(props)
+ .setApp("ScannerCli", ScannerVersion.version());
}
class DefaultLogOutput implements LogOutput {