#2119 - enforce Java6 for releases

This commit is contained in:
Viktor Klang 2012-06-11 11:26:28 +02:00
parent 2b69f67777
commit edc0c0d888

View file

@ -93,6 +93,8 @@ fi
declare -r version=$1
declare -r publish_path="${release_server}:${release_path}"
[[ `java -version 2>&1 | grep "java version" | awk '{print $3}' | tr -d \" | awk '{split($0, array, ".")} END{print array[2]}'` -eq 6 ]] || fail "Java version is not 1.6"
# check for a git command
type -P git &> /dev/null || fail "git command not found"