Skip to content

Commit

Permalink
HOTFIX: Support custom Java 7 location
Browse files Browse the repository at this point in the history
  • Loading branch information
pwendell committed Aug 7, 2014
1 parent 4201d27 commit a263a7e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dev/create-release/create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ RELEASE_VERSION=${RELEASE_VERSION:-1.0.0}
RC_NAME=${RC_NAME:-rc2}
USER_NAME=${USER_NAME:-pwendell}

if [ -z "$JAVA_HOME" ]; then
echo "Error: JAVA_HOME is not set, cannot proceed."
exit -1
fi
JAVA_7_HOME=${JAVA_7_HOME:-$JAVA_HOME}

set -e

GIT_TAG=v$RELEASE_VERSION-$RC_NAME
Expand Down Expand Up @@ -130,7 +136,8 @@ scp spark-* \
cd spark
sbt/sbt clean
cd docs
PRODUCTION=1 jekyll build
# Compile docs with Java 7 to use nicer format
JAVA_HOME=$JAVA_7_HOME PRODUCTION=1 jekyll build
echo "Copying release documentation"
rc_docs_folder=${rc_folder}-docs
ssh $USER_NAME@people.apache.org \
Expand Down

0 comments on commit a263a7e

Please sign in to comment.