Skip to content

Commit

Permalink
Try to fix ant jacoco repro
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-bell committed Aug 1, 2024
1 parent 8dac956 commit 626ea5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/experiments/get_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi

JACOCO_SOURCES=$ROOT_DIR/examples/target/dependency-sources
if [ ! -d $JACOCO_SOURCES ]; then
(cd $ROOT_DIR/examples && mvn dependency:unpack-dependencies -Dclassifier=sources -DincludeArtifactIds=maven-model,closure-compiler,rhino,ant,bcel -DoutputDirectory=target/dependency-sources)
(cd $ROOT_DIR/examples && mvn -q dependency:unpack-dependencies -Dclassifier=sources -DincludeArtifactIds=maven-model,closure-compiler,rhino,ant,bcel -DoutputDirectory=target/dependency-sources)
fi

JACOCO_UTIL_JAR=$ROOT_DIR/target/jacoco-utils-1.0-SNAPSHOT.jar
Expand All @@ -32,6 +32,9 @@ if [ ! -f $JACOCO_UTIL_JAR ]; then
mvn -q dependency:copy -Dartifact=fun.jvm.jacoco:jacoco-utils:1.0-SNAPSHOT -DoutputDirectory=$ROOT_DIR/target/
fi

# Chocopy contains a copy of ant, so we need to exclude it when processing coverage for ant...
rm -f $ROOT_DIR/examples/target/dependency/chocopy*

export JACOCO_RUNNER_JAR=$ROOT_DIR/target/
export CLASSPATH="$ROOT_DIR/examples/target/test-classes/"

Expand Down

0 comments on commit 626ea5e

Please sign in to comment.