mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-12 19:55:14 +02:00
refactor(dynamic): replace Spring annotation stubs with real dependencies, integrate MockMvc-based invocation for Spring controllers, and enhance runtime classpath logic
This commit is contained in:
parent
c57cd233fc
commit
61bfc0cf96
16 changed files with 214 additions and 98 deletions
|
|
@ -315,11 +315,17 @@ pub fn run_spec(spec: &HarnessSpec, opts: &SandboxOptions) -> Result<RunOutcome,
|
|||
// Compile NyxHarness.java + Entry.java with javac.
|
||||
match build_sandbox::prepare_java(spec, &harness.workdir) {
|
||||
Ok(_) => {
|
||||
// Update classpath to absolute workdir path for Docker compatibility.
|
||||
// Update classpath to absolute workdir paths for Docker
|
||||
// compatibility. Include Maven-staged jars too; framework
|
||||
// harnesses compile with `lib/*` and need the same jars at
|
||||
// runtime.
|
||||
let workdir_cp = harness.workdir.to_string_lossy();
|
||||
let lib_cp = harness.workdir.join("lib/*");
|
||||
let cp = format!("{workdir_cp}:{}", lib_cp.to_string_lossy());
|
||||
harness.command = vec![
|
||||
"java".to_owned(),
|
||||
"-cp".to_owned(),
|
||||
harness.workdir.to_string_lossy().into_owned(),
|
||||
cp,
|
||||
"NyxHarness".to_owned(),
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue