Skip to content

Commit

Permalink
fix(plc4j): Fixed broken code for detecting parllels
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdutz committed Jul 13, 2022
1 parent bd0b41b commit 0b2693e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public class DisableOnParallelsVmFlagCondition implements ExecutionCondition {
if(SystemUtils.IS_OS_WINDOWS) {
// TODO: If on Windows: Run "systeminfo /fo CSV /nh" command and check if the output contains "Parallels Virtual Platform"
try {
var processBuilder = new ProcessBuilder();
ProcessBuilder processBuilder = new ProcessBuilder();
processBuilder.command("systeminfo", "/fo", "CSV", "/nh");
var process = processBuilder.start();
try (var reader = new BufferedReader(
Process process = processBuilder.start();
try (BufferedReader reader = new BufferedReader(
new InputStreamReader(process.getInputStream()))) {
String line;
while ((line = reader.readLine()) != null) {
Expand Down

0 comments on commit 0b2693e

Please sign in to comment.