Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion groovy/groovy.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ def _groovy_test_impl(ctx):
classes = [path_to_class(src.path) for src in ctx.files.srcs]

# Write a file that executes JUnit on the inferred classes
cmd = "$JAVA_HOME/bin/java %s -cp %s org.junit.runner.JUnitCore %s\n" % (
cmd = "%s/bin/java %s -cp %s org.junit.runner.JUnitCore %s\n" % (
ctx.attr._jdk[java_common.JavaRuntimeInfo].java_home,
" ".join(ctx.attr.jvm_flags),
":".join([dep.short_path for dep in all_deps.to_list()]),
" ".join(classes),
Expand Down