aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/assembly/bin/sonar-runner
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/assembly/bin/sonar-runner')
-rwxr-xr-xsrc/main/assembly/bin/sonar-runner14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/main/assembly/bin/sonar-runner b/src/main/assembly/bin/sonar-runner
index 3d2b092..556e712 100755
--- a/src/main/assembly/bin/sonar-runner
+++ b/src/main/assembly/bin/sonar-runner
@@ -65,6 +65,8 @@ real_path () {
echo "$FOO"
}
+echo WARN: 'sonar-runner' script is deprecated. Please use 'sonar-scanner' instead.
+
if [ -z "$SONAR_RUNNER_HOME" ] ; then
PRG="$0"
@@ -92,6 +94,14 @@ else
JAVA_CMD="`which java`"
fi
+if [ -n "$SONAR_RUNNER_OPTS" ] ;
+then
+ echo WARN: '$SONAR_RUNNER_OPTS' is deprecated. Please use '$SONAR_SCANNER_OPTS' instead.
+ if [ -z "$SONAR_SCANNER_OPTS" ] ; then
+ SONAR_SCANNER_OPTS=$SONAR_RUNNER_OPTS
+ fi
+fi
+
JAR_FILE="${SONAR_RUNNER_HOME}"/lib/sonar-scanner-cli-${project.version}.jar
PROJECT_HOME=`pwd`
@@ -102,9 +112,9 @@ PROJECT_HOME=`pwd`
exec "$JAVA_CMD" \
-Djava.awt.headless=true \
- $SONAR_RUNNER_OPTS \
+ $SONAR_SCANNER_OPTS \
-classpath $JAR_FILE \
- "-Drunner.home=\${SONAR_RUNNER_HOME}" \
+ "-Dscanner.home=\${SONAR_RUNNER_HOME}" \
"-Dproject.home=\${PROJECT_HOME}" \
org.sonarsource.scanner.cli.Main "$@"