forked from Cutieguwu/raven
Removed Fence denugging statements
This commit is contained in:
@@ -79,12 +79,6 @@ 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()
|
||||
@@ -92,7 +86,6 @@ impl JVM {
|
||||
.flat_map(|f| Into::<Vec<String>>::into(f)),
|
||||
);
|
||||
|
||||
println!("Fence 5");
|
||||
for part in &cmd {
|
||||
println!("{}", part);
|
||||
}
|
||||
@@ -102,11 +95,9 @@ impl JVM {
|
||||
// Jave needs a class path and a file name to run.
|
||||
cmd.push("Test".to_string());
|
||||
|
||||
println!("Fence 6");
|
||||
println!("{:?}", cmd.as_slice());
|
||||
|
||||
|
||||
println!("Fence 7");
|
||||
let result = crate::io::run_process(cmd.as_slice());
|
||||
|
||||
if self.monitor
|
||||
|
||||
@@ -248,18 +248,15 @@ fn run<P: AsRef<Path>>(
|
||||
}
|
||||
|
||||
fn test(assertions: bool) -> anyhow::Result<(Option<String>, Option<String>)> {
|
||||
println!("Fence 1");
|
||||
java::CompilerBuilder::new()
|
||||
.class_path(DIR_TARGET.as_path())
|
||||
.destination(DIR_TARGET.as_path())
|
||||
.build()
|
||||
.compile(DIR_TEST.as_path())?;
|
||||
|
||||
println!("Fence 2");
|
||||
// Change cwd to avoid Java pathing issues.
|
||||
crate::env::set_cwd(DIR_TARGET.as_path())?;
|
||||
|
||||
println!("Fence 3");
|
||||
java::JVMBuilder::new()
|
||||
.assertions(assertions)
|
||||
.ram_min(ByteSize::mib(128))
|
||||
|
||||
Reference in New Issue
Block a user