forked from joeferner/node-java
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile-java8-code.sh
More file actions
Latest commit
executable file
·14 lines (11 loc) · 529 Bytes
/
Copy pathcompile-java8-code.sh
File metadata and controls
executable file
·14 lines (11 loc) · 529 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash -e
# This script must be run on a Mac due to its reliance on /usr/libexec/java_home
# to find a JDK 1.8 installation. Note that this script will work correctly on
# a mac with JDK 1.8 installed, even if JAVA_HOME currently points to a 1.7
# or earlier JDK.
# This script is run manually by maintainers of this project, who add the
# the generated .class files to source control.
JAVA_VERSION=1.8
JDK8_HOME=$(/usr/libexec/java_home -v ${JAVA_VERSION})
cd test8
${JDK8_HOME}/bin/javac -source ${JAVA_VERSION}*.java