File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -9,5 +9,6 @@ JLINK_VM_OPTIONS="\
9
9
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
10
10
--add-opens jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED"
11
11
DIST_DIR=$( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
12
- CLASSPATH_OPTIONS=" -classpath ${DIST_DIR} /classpath/gson-2.8.9.jar:${DIST_DIR} /classpath/protobuf-java-3.19.3.jar:${DIST_DIR} /classpath/java-language-server.jar"
12
+ CLASSPATH_JARS=$( find ${DIST_DIR} /classpath -type f -iname ' *.jar' | xargs)
13
+ CLASSPATH_OPTIONS=" -classpath ${CLASSPATH_JARS} "
13
14
${DIST_DIR} /linux/bin/java $JLINK_VM_OPTIONS $CLASSPATH_OPTIONS $@
Original file line number Diff line number Diff line change @@ -9,5 +9,8 @@ JLINK_VM_OPTIONS="\
9
9
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
10
10
--add-opens jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED"
11
11
DIST_DIR=$( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
12
- CLASSPATH_OPTIONS=" -classpath ${DIST_DIR} /classpath/gson-2.8.9.jar:${DIST_DIR} /classpath/protobuf-java-3.19.3.jar:${DIST_DIR} /classpath/java-language-server.jar"
12
+ echo " dist dir is ${DIST_DIR} "
13
+ JAVA_HOME=${DIST_DIR} /mac/bin/java
14
+ CLASSPATH_JARS=$( find ${DIST_DIR} /classpath -type f -iname ' *.jar' | xargs)
15
+ CLASSPATH_OPTIONS=" -classpath ${CLASSPATH_JARS} "
13
16
${DIST_DIR} /mac/bin/java $JLINK_VM_OPTIONS $CLASSPATH_OPTIONS $@
Original file line number Diff line number Diff line change @@ -9,5 +9,6 @@ JLINK_VM_OPTIONS="\
9
9
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
10
10
--add-opens jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED"
11
11
DIST_DIR=$( dirname $( readlink -f " ${BASH_SOURCE[0]} " ) )
12
- CLASSPATH_OPTIONS=" -classpath ${DIST_DIR} /classpath/gson-2.8.9.jar;${DIST_DIR} /classpath/protobuf-java-3.19.3.jar;${DIST_DIR} /classpath/java-language-server.jar"
12
+ CLASSPATH_JARS=$( find ${DIST_DIR} /classpath -type f -iname ' *.jar' | xargs)
13
+ CLASSPATH_OPTIONS=" -classpath ${CLASSPATH_JARS} "
13
14
${DIST_DIR} /windows/bin/java $JLINK_VM_OPTIONS $CLASSPATH_OPTIONS $@
You can’t perform that action at this time.
0 commit comments