Skip to content

Commit

Permalink
quarkus update - Fix Windows detection
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Nov 30, 2023
1 parent 397ca66 commit e3ba23c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions independent-projects/tools/devtools-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
<groupId>io.smallrye.common</groupId>
<artifactId>smallrye-common-version</artifactId>
</dependency>
<dependency>
<groupId>io.smallrye.common</groupId>
<artifactId>smallrye-common-os</artifactId>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>maven-model-helper</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import io.quarkus.devtools.messagewriter.MessageWriter;
import io.quarkus.devtools.project.BuildTool;
import io.quarkus.qute.Qute;
import io.smallrye.common.os.OS;

public class QuarkusUpdateCommand {

Expand Down Expand Up @@ -305,10 +306,8 @@ private static boolean isExecutable(Path file) {
return false;
}

private static String OS = System.getProperty("os.name").toLowerCase();

public static boolean isWindows() {
return OS.contains("win");
return OS.WINDOWS.isCurrent();
}

private enum LogLevel {
Expand Down

0 comments on commit e3ba23c

Please sign in to comment.