Browse Source

Check if Java is installed on Linux

tags/3.4.0.1729
Mozes Gaal 5 years ago
parent
commit
7d46ea4928
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/main/assembly/bin/sonar-scanner

+ 5
- 0
src/main/assembly/bin/sonar-scanner View File

@@ -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"

Loading…
Cancel
Save