Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
system.properties support
  • Loading branch information
Naaman Newbold committed Nov 7, 2012
1 parent 43d945d commit 2ebc3be
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions bin/compile
Expand Up @@ -10,6 +10,31 @@ BIN_DIR=$(cd $(dirname $0); pwd) # absolute path
# source in common functions
. $BIN_DIR/common.sh

silent --location http://heroku-jvm-common.s3.amazonaws.com/jvm-buildpack-common.tar.gz | tar xz
. bin/java

if [ -f ${CACHE_DIR}/system.properties ] && [ ! -f ${BUILD_DIR}/system.properties ]; then
cp ${CACHE_DIR}/system.properties ${BUILD_DIR}/system.properties
fi

if [ ! -d $CACHE_DIR ] && [ ! -f ${BUILD_DIR}/system.properties ]; then
echo "java.runtime.version=1.6" > ${BUILD_DIR}/system.properties;
fi

#create the cache dir if it doesn't exist
mkdir -p $CACHE_DIR

# install JDK
if [ -f ${BUILD_DIR}/system.properties ]; then
logger -p user.notice -t "slugc[$$]" "language_pack_java download_jdk"
LOGGER_FLAGS="$LOGGER_FLAGS download_jdk"
javaVersion=$(detect_java_version ${BUILD_DIR})
echo -n "-----> Installing OpenJDK ${javaVersion}..."
install_java ${BUILD_DIR} ${javaVersion}
echo "done"
cp ${BUILD_DIR}/system.properties ${CACHE_DIR}/
fi

PLAY_PATH=".play"
IVY_PATH=".ivy2"

Expand Down

0 comments on commit 2ebc3be

Please sign in to comment.