We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff5caf8 commit 55988d5Copy full SHA for 55988d5
tmc-langs-java/src/ant.rs
@@ -10,7 +10,7 @@ use std::env;
10
use std::fs::{self, File};
11
use std::io::Write;
12
use std::path::Path;
13
-use std::process::Command;
+use std::process::{Command, Stdio};
14
use std::time::Duration;
15
use tmc_langs_framework::{
16
domain::{ExerciseDesc, RunResult},
@@ -34,7 +34,12 @@ impl AntPlugin {
34
35
fn get_ant_executable(&self) -> &'static str {
36
if cfg!(windows) {
37
- if let Ok(status) = Command::new("ant").arg("-version").status() {
+ if let Ok(status) = Command::new("ant")
38
+ .arg("-version")
39
+ .stdout(Stdio::piped())
40
+ .stderr(Stdio::piped())
41
+ .status()
42
+ {
43
if status.success() {
44
return "ant";
45
}
0 commit comments