Skip to content

Commit

Permalink
Make ECJ jar overridable
Browse files Browse the repository at this point in the history
  • Loading branch information
guw committed Jun 6, 2024
1 parent 5888a19 commit 04c2750
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ecj-test/test-compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ function abort {
exit ${2:-1}
}

ECJ=ecj-4.31RC1.jar
#ECJ=ecj-4.30.jar

[ -f "ecj-4.30.jar" ] || {
abort "please download ecj-4.30.jar into $(pwd)"
[ -f "$ECJ" ] || {
abort "please download $ECJ into $(pwd)"
}

# JDK 11 as target platform
Expand Down Expand Up @@ -77,14 +79,14 @@ remotejdk_21/bin/java --version

[ -f "remotejdk_11/platformclasses.jar" ] || {
announce "Extracting bootclasspath from remotejdk_11"
remotejdk_21/bin/java -jar ecj-4.30.jar -d bin --release 11 src/DumpPlatformClassPath.java
remotejdk_21/bin/java -jar $ECJ -d bin --release 11 src/DumpPlatformClassPath.java
remotejdk_21/bin/java -cp bin DumpPlatformClassPath remotejdk_11/platformclasses.jar remotejdk_11
}


announce "remotejdk_21/bin/javac $@"
remotejdk_21/bin/javac "$@" || warn "javac failed"

announce "remotejdk_21/bin/java -jar ecj-4.30.jar $@"
remotejdk_21/bin/java -jar ecj-4.30.jar "$@" || warn "ECJ failed"
announce "remotejdk_21/bin/java -jar $ECJ $@"
remotejdk_21/bin/java -jar $ECJ "$@" || warn "ECJ failed"

0 comments on commit 04c2750

Please # to comment.