osmose.java_staging

Stage an OSMOSE config for the Java engine.

Every Java run should go through stage_config_for_java(), so that each path writes the keys the selected jar needs and none drifts from the others (GitHub #138 was the Run tab skipping a step another path had). It lives in the library, not the UI, so callers without Shiny can use it: calibration’s Java path and the scripts. ui.pages.run re-exports these names.

This module must not import osmose.runner or ui: osmose.java_background_staging documents the import cycle that would create.

Functions

stage_config_for_java(config, work_dir[, ...])

Stage config for the Java engine; return (master config path, -P overrides).

write_temp_config(config, output_dir[, ...])

Write config to a directory, copy data files, and return the master file path.