diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-02-03 04:08:26 +0000 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-02-03 04:08:26 +0000 |
commit | a0c622bc8666ccb0983fce374dfd01f03ca37703 (patch) | |
tree | a6c7e249db0dfe7fc871789daca65783b45a46e9 /src/main/assembly | |
parent | 3a838115d1275778b303029fbf6632976b5db58f (diff) | |
download | sonar-scanner-cli-a0c622bc8666ccb0983fce374dfd01f03ca37703.tar.gz sonar-scanner-cli-a0c622bc8666ccb0983fce374dfd01f03ca37703.zip |
SONAR-RUNNER
Diffstat (limited to 'src/main/assembly')
-rwxr-xr-x | src/main/assembly/bin/sonar-runner.sh | 27 | ||||
-rw-r--r-- | src/main/assembly/conf/sonar-runner.properties | 17 |
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&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 |