mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-02 22:55:26 +02:00
Add check for java installation
Change-Id: I23fb52b11a5d25b3bcf32653e39a7117da2131b4 Signed-off-by: Greg Watson <g.watson@computer.org>
This commit is contained in:
parent
40f31e1164
commit
a4d5e22c18
1 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,12 @@ parent_is_not_orphan () {
|
|||
|
||||
do_check() {
|
||||
java_vers=`java -version 2>&1`
|
||||
case "$java_vers" in
|
||||
*"not found")
|
||||
echo "fail:could not find a valid java installation"
|
||||
return
|
||||
;;
|
||||
esac
|
||||
major=`expr "$java_vers" : ".* version \"\([0-9]*\)\.[0-9]*.*\""`
|
||||
minor=`expr "$java_vers" : ".* version \"[0-9]*\.\([0-9]*\).*\""`
|
||||
if test "$major" -ge 2 -o "$minor" -ge 8; then
|
||||
|
|
Loading…
Add table
Reference in a new issue