Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
Update javac version to 9-dev-r4023-2
Browse files Browse the repository at this point in the history
Change-Id: I23e38767e18a90b2262a38bf8f4b347e06d1de8d
PiperOrigin-RevId: 155630560
  • Loading branch information
cushon authored and kchodorow committed May 10, 2017
1 parent 20824c1 commit 4a404de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/bootstrap/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Script for building bazel from scratch without bazel

PROTO_FILES=$(ls src/main/protobuf/*.proto src/main/java/com/google/devtools/build/lib/buildeventstream/proto/*.proto)
LIBRARY_JARS=$(find third_party -name '*.jar' | grep -Fv /javac-9-dev-r3297-4.jar | grep -Fv /javac-9-dev-4023-1.jar | grep -Fv /javac7.jar | grep -Fv JavaBuilder | grep -Fv third_party/guava | grep -Fv third_party/guava | grep -ve third_party/grpc/grpc.*jar | tr "\n" " ")
LIBRARY_JARS=$(find third_party -name '*.jar' | grep -Fv /javac-9-dev-r3297-4.jar | grep -Fv /javac-9-dev-4023-2.jar | grep -Fv /javac7.jar | grep -Fv JavaBuilder | grep -Fv third_party/guava | grep -Fv third_party/guava | grep -ve third_party/grpc/grpc.*jar | tr "\n" " ")
GRPC_JAVA_VERSION=0.15.0
GRPC_LIBRARY_JARS=$(find third_party/grpc -name '*.jar' | grep -e .*${GRPC_JAVA_VERSION}.*jar | tr "\n" " ")
# Guava jars are different for JDK 7 build and JDK 8 build, we select the good
Expand Down
6 changes: 3 additions & 3 deletions src/create_embedded_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ for i in $*; do
*JavaBuilder*_deploy.jar) OUTPUT_PATH=tools/jdk/${i##*/} ;;
*JacocoCoverage*_deploy.jar) OUTPUT_PATH=tools/jdk/JacocoCoverage_deploy.jar ;;
*turbine_deploy.jar) OUTPUT_PATH=tools/jdk/turbine_deploy.jar ;;
*javac-9-dev-r4023-1.jar) OUTPUT_PATH=third_party/java/jdk/langtools/javac-9-dev-r4023-1.jar ;;
*javac-9-dev-r4023-2.jar) OUTPUT_PATH=third_party/java/jdk/langtools/javac-9-dev-r4023-2.jar ;;
*javac7.jar) OUTPUT_PATH=third_party/java/jdk/langtools/javac7.jar ;;
*SingleJar_deploy.jar) OUTPUT_PATH=tools/jdk/SingleJar_deploy.jar ;;
*GenClass_deploy.jar) OUTPUT_PATH=tools/jdk/GenClass_deploy.jar ;;
Expand Down Expand Up @@ -76,9 +76,9 @@ if [ -f ${PACKAGE_DIR}/jdk.zip ]; then
mv ${PACKAGE_DIR}/zulu* ${PACKAGE_DIR}/jdk
fi

if [ ! -f ${PACKAGE_DIR}/third_party/java/jdk/langtools/javac-9-dev-r4023-1.jar ]; then
if [ ! -f ${PACKAGE_DIR}/third_party/java/jdk/langtools/javac-9-dev-r4023-2.jar ]; then
cp ${PACKAGE_DIR}/third_party/java/jdk/langtools/javac7.jar \
${PACKAGE_DIR}/third_party/java/jdk/langtools/javac-9-dev-r4023-1.jar
${PACKAGE_DIR}/third_party/java/jdk/langtools/javac-9-dev-r4023-2.jar
fi

cat > "${PACKAGE_DIR}/WORKSPACE" <<EOF
Expand Down
4 changes: 2 additions & 2 deletions src/test/shell/testenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ function create_new_workspace() {

copy_tools_directory

[ -e third_party/java/jdk/langtools/javac-9-dev-r4023-1.jar ] \
|| ln -s "${langtools_path}" third_party/java/jdk/langtools/javac-9-dev-r4023-1.jar
[ -e third_party/java/jdk/langtools/javac-9-dev-r4023-2.jar ] \
|| ln -s "${langtools_path}" third_party/java/jdk/langtools/javac-9-dev-r4023-2.jar

touch WORKSPACE
}
Expand Down

0 comments on commit 4a404de

Please sign in to comment.