-
-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
296 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tools/sonar-scanner-msbuild/SonarScanner.MSBuild.PostProcessor.dll
Binary file not shown.
Binary file modified
BIN
+512 Bytes
(100%)
tools/sonar-scanner-msbuild/SonarScanner.MSBuild.PreProcessor.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
tools/sonar-scanner-msbuild/sonar-scanner-3.2.0.1227/bin/sonar-scanner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/bin/sh | ||
# | ||
# SonarQube Scanner Startup Script for Unix | ||
# | ||
# Optional ENV vars: | ||
# SONAR_SCANNER_OPTS - Parameters passed to the Java VM when running the SonarQube Scanner | ||
# SONAR_SCANNER_DEBUG_OPTS - Extra parameters passed to the Java VM for debugging | ||
# JAVA_HOME - Location of Java's installation | ||
|
||
real_path () { | ||
target=$1 | ||
|
||
( | ||
while true; do | ||
cd "$(dirname "$target")" | ||
target=$(basename "$target") | ||
test -L "$target" || break | ||
target=$(readlink "$target") | ||
done | ||
|
||
echo "$(pwd -P)/$target" | ||
) | ||
} | ||
|
||
script_path=$(real_path "$0") | ||
sonar_scanner_home=$(dirname "$script_path")/.. | ||
|
||
# make it fully qualified | ||
sonar_scanner_home=$(cd "$sonar_scanner_home" && pwd -P) | ||
|
||
jar_file=$sonar_scanner_home/lib/sonar-scanner-cli-3.2.0.1227.jar | ||
|
||
# check that sonar_scanner_home has been correctly set | ||
if [ ! -f "$jar_file" ] ; then | ||
echo "File does not exist: $jar_file" | ||
echo "'$sonar_scanner_home' does not point to a valid installation directory: $sonar_scanner_home" | ||
exit 1 | ||
fi | ||
|
||
use_embedded_jre=false | ||
if [ "$use_embedded_jre" = true ]; then | ||
export JAVA_HOME=$sonar_scanner_home/jre | ||
fi | ||
|
||
if [ -n "$JAVA_HOME" ] | ||
then | ||
java_cmd="$JAVA_HOME/bin/java" | ||
else | ||
java_cmd="$(which java)" | ||
fi | ||
|
||
project_home=$(pwd) | ||
|
||
#echo "Info: Using sonar-scanner at $sonar_scanner_home" | ||
#echo "Info: Using java at $java_cmd" | ||
#echo "Info: Using classpath $jar_file" | ||
#echo "Info: Using project $project_home" | ||
|
||
exec "$java_cmd" \ | ||
-Djava.awt.headless=true \ | ||
$SONAR_SCANNER_OPTS \ | ||
$SONAR_SCANNER_DEBUG_OPTS \ | ||
-classpath "$jar_file" \ | ||
-Dscanner.home="$sonar_scanner_home" \ | ||
-Dproject.home="$project_home" \ | ||
org.sonarsource.scanner.cli.Main "$@" | ||
|
14 changes: 14 additions & 0 deletions
14
tools/sonar-scanner-msbuild/sonar-scanner-3.2.0.1227/bin/sonar-scanner-debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
# | ||
# SonarQube Scanner Startup Script for Unix | ||
# | ||
# Optional ENV vars: | ||
# SONAR_SCANNER_OPTS - parameters passed to the Java VM when running the SonarQube Scanner | ||
# JAVA_HOME - Location of Java's installation | ||
|
||
SONAR_SCANNER_DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000" | ||
|
||
echo "Executing SonarQube Scanner 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 "$@" |
Oops, something went wrong.