diff --git a/preflightcheck.sh b/preflightcheck.sh index 7187b20..914eb65 100644 --- a/preflightcheck.sh +++ b/preflightcheck.sh @@ -1,5 +1,9 @@ #!/bin/bash +# +# Version: 1.0 +# + # set source and test locations src="src/main/kotlin/net/thauvin/erik/gradle/semver/" test="src/main/kotlin/net/thauvin/erik/gradle/semver/" diff --git a/updatewrappers.sh b/updatewrappers.sh index 894497a..f26aed3 100644 --- a/updatewrappers.sh +++ b/updatewrappers.sh @@ -1,7 +1,9 @@ #!/bin/bash -export JAVA_HOME="$JAVA8_HOME" -export PATH="$(cygpath "$JAVA_HOME")/bin:$PATH" + +# +# Version: 1.0 +# # set the examples directories declare -a dirs=( @@ -10,6 +12,9 @@ declare -a dirs=( "examples/kotlin" "annotation-processor/java" "annotation-processor/kotlin") +java8=true + +### pwd=$PWD cyan=$(tput setaf 6) @@ -17,6 +22,12 @@ green=$(tput setaf 2) red=$(tput setaf 1) std=$(tput sgr0) +if [ "$java8" = true ] +then + export JAVA_HOME="$JAVA8_HOME" + export PATH="$(cygpath "$JAVA_HOME")/bin:$PATH" +fi + kVer=$(kobaltw --version | awk '{print substr($2, 1, length($2)-1)}') updateWrappers() { curVer="$(gradle --version | awk '/Gradle/ {print $2}')"