Skip to content
Open
Show file tree
Hide file tree
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: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version 0.4.5
-------------
* fix `java_test` using f-string to test package arg
Version 0.4.4
-------------
* `java_runtime_image` provides an entry point so it can be referenced directly
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.4
0.4.5
2 changes: 1 addition & 1 deletion build_defs/java.build_defs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def java_test(name:str, srcs:list, resources:list=None, resources_root:str=None,
else:
java = CONFIG.JAVA.JAVA_TOOL

test_package_arg = "-Dbuild.please.testpackage={test_package}" if test_package is not None else ""
test_package_arg = f"-Dbuild.please.testpackage={test_package}" if test_package is not None else ""

cmd = 'ln -s "$(if [ -f "$TOOLS_JUNIT" ]; then echo "$TOOLS_JUNIT"; else echo "$(which "$TOOLS_JUNIT")"; fi)" . && ' + cmd
test_cmd = f"$TOOLS_JAVA {test_package_arg} {jvm_args} -jar $(location :{name}) {flags}"
Expand Down