aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/assembly
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-02-03 04:08:26 +0000
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-02-03 04:08:26 +0000
commita0c622bc8666ccb0983fce374dfd01f03ca37703 (patch)
treea6c7e249db0dfe7fc871789daca65783b45a46e9 /src/main/assembly
parent3a838115d1275778b303029fbf6632976b5db58f (diff)
downloadsonar-scanner-cli-a0c622bc8666ccb0983fce374dfd01f03ca37703.tar.gz
sonar-scanner-cli-a0c622bc8666ccb0983fce374dfd01f03ca37703.zip
SONAR-RUNNER
Diffstat (limited to 'src/main/assembly')
-rwxr-xr-xsrc/main/assembly/bin/sonar-runner.sh27
-rw-r--r--src/main/assembly/conf/sonar-runner.properties17
2 files changed, 44 insertions, 0 deletions
diff --git a/src/main/assembly/bin/sonar-runner.sh b/src/main/assembly/bin/sonar-runner.sh
new file mode 100755
index 0000000..abad57b
--- /dev/null
+++ b/src/main/assembly/bin/sonar-runner.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# Sonar Runner Startup Script for Unix
+#
+
+if [ -z "$SONAR_RUNNER_HOME" ] ; then
+ PRG="$0"
+
+ SONAR_RUNNER_HOME=`dirname "$PRG"`/..
+
+ # make it fully qualified
+ SONAR_RUNNER_HOME=`cd "$SONAR_RUNNER_HOME" && pwd`
+fi
+
+JAVACMD="`which java`"
+
+JAVACLASSPATH="${SONAR_RUNNER_HOME}"/lib/sonar-runner.jar
+JAVACLASSPATH=$JAVACLASSPATH:"${SONAR_RUNNER_HOME}"/lib/sonar-batch-bootstrapper.jar
+
+echo "Info: Using sonar-runner at $SONAR_RUNNER_HOME"
+echo "Info: Using java at $JAVACMD"
+echo "Info: Using classpath $JAVACLASSPATH"
+
+exec "$JAVACMD" \
+ -classpath $JAVACLASSPATH \
+ "-Drunner.home=${SONAR_RUNNER_HOME}" \
+ org.sonar.runner.Main "$@"
diff --git a/src/main/assembly/conf/sonar-runner.properties b/src/main/assembly/conf/sonar-runner.properties
new file mode 100644
index 0000000..58e14fd
--- /dev/null
+++ b/src/main/assembly/conf/sonar-runner.properties
@@ -0,0 +1,17 @@
+#sonar.host.url=http://localhost:9000
+
+#----- PostgreSQL
+#sonar.jdbc.url=jdbc:postgresql://localhost/sonar
+#sonar.jdbc.driver=org.postgresql.Driver
+
+#----- MySQL
+#sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;characterEncoding=utf8
+#sonar.jdbc.driver=com.mysql.jdbc.Driver
+
+#----- Oracle
+#sonar.jdbc.url=jdbc:oracle:thin:@localhost/XE
+#sonar.jdbc.driver=oracle.jdbc.driver.OracleDriver
+
+#----- Global database settings
+#sonar.jdbc.username=sonar
+#sonar.jdbc.password=sonar