Skip to content

Commit 0efd2fb

Browse files
authored
Merge pull request #23 from sinha108/main
Updated check for windows os
2 parents 1f9c575 + 1fe7ba2 commit 0efd2fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/ibm/northstar/utils/BuildProject.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public class BuildProject {
1515

1616
public static Path libDownloadPath;
1717
private static final String LIB_DEPS_DOWNLOAD_DIR = ".library-dependencies";
18-
private static final String MAVEN_CMD = System.getProperty("os.name").contains("win") ? "mvn.cmd" : "mvn";
19-
private static final String GRADLE_CMD = System.getProperty("os.name").contains("win") ? "gradlew.bat" : "gradlew";
18+
private static final String MAVEN_CMD = System.getProperty("os.name").toLowerCase().contains("windows") ? "mvn.cmd" : "mvn";
19+
private static final String GRADLE_CMD = System.getProperty("os.name").toLowerCase().contains("windows") ? "gradlew.bat" : "gradlew";
2020

2121
private static boolean buildWithTool(String[] buildCommand) {
2222
Log.info("Building the project using " + buildCommand[0] + ".");

0 commit comments

Comments
 (0)