use anyhow::Result;
use std::path::Path;
use std::process::Command;
pub fn run_file(path: &Path) -> Result<()> {
info!("Starting {} ...", path.display());
let status = match Command::new("java").arg(path).status() {
Ok(status) => status,
Err(_) => error!("Java could not be started"),
};
if !status.success() {
error!("Execution failed");
}
Ok(())
}