diff options
Diffstat (limited to 'src/main/assembly/bin/sonar-scanner')
-rwxr-xr-x | src/main/assembly/bin/sonar-scanner | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/assembly/bin/sonar-scanner b/src/main/assembly/bin/sonar-scanner index dc9d263..fefac84 100755 --- a/src/main/assembly/bin/sonar-scanner +++ b/src/main/assembly/bin/sonar-scanner @@ -49,6 +49,11 @@ else java_cmd="$(which java)" fi +if [ -z "$java_cmd" -o ! -x "$java_cmd" ] ; then + echo "Could not find 'java' executable in JAVA_HOME or PATH." + exit 1 +fi + project_home=$(pwd) #echo "Info: Using sonar-scanner at $sonar_scanner_home" |