Skip to content

Commit 20ce8ff

Browse files
committed
Added pack specific order.txt flushing for Java
1 parent cac73f8 commit 20ce8ff

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

toolchain/toolchain/python/icmtoolchain/java_build.py

+10
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,16 @@ def build_java_directories(tool: str, directories: Dict[str, BaseConfig], target
515515
if not built_successfully:
516516
warn(f"* Directory {target.relative_directory!r} is empty.")
517517

518+
if GLOBALS.MAKE_CONFIG.has_value("manifest"):
519+
target_output_path = GLOBALS.MOD_STRUCTURE.get_target_output_directory("java")
520+
order = [relpath(target.output_directory, target_output_path) for target in targets]
521+
order_path = join(target_output_path, "order.txt")
522+
ensure_file(order_path)
523+
524+
with open(order_path, "w", encoding="utf-8") as order_file:
525+
order_file.write("\n".join(order))
526+
order_file.write("\n")
527+
518528
copy_additional_sources(targets)
519529
GLOBALS.BUILD_STORAGE.save()
520530
return result

0 commit comments

Comments
 (0)