Refactored assets to use propper java syntax. Found error in the raven test command. Impropper formating when passing arguments to the java command.

This commit is contained in:
2026-01-26 23:56:52 -05:00
committed by Olivia Brooks
parent 3deedb2f7f
commit 6da7586c3e
5 changed files with 40 additions and 17 deletions

View File

@@ -79,14 +79,32 @@ impl JVM {
) -> anyhow::Result<(Option<String>, Option<String>)> {
let mut cmd = vec![JAVA_VM.to_string()];
println!("Fence 4");
// proper format
// java -Xms128m -Xmx512m -cp PROJECT_ROOT/src/text \test.Test
// current format
// java Xms128.0 MiB Xmx512.0 MiB /home/viffx/Coding/Rust/raven/src/Test1/src/test/
cmd.extend(
self.flags
.clone()
.into_iter()
.flat_map(|f| Into::<Vec<String>>::into(f)),
);
println!("Fence 5");
for part in &cmd {
println!("{}", part);
}
cmd.push(entry_point.as_ref().display().to_string());
println!("Fence 6");
for part in &cmd {
println!("{}", part);
}
println!("Fence 7");
let result = crate::io::run_process(cmd.as_slice());
if self.monitor