Closed rahlk closed 2 weeks ago
private static final String MAVEN_CMD = BuildProject.getMavenCommand(); private static String getMavenCommand() { Boolean isWindows = System.getProperty("os.name").toLowerCase().contains("windows"); String mvnCommand; if (isWindows) { mvnCommand = new File(projectRootPom, "mvnw.bat").exists() ? String.valueOf(new File(projectRootPom, "mvnw.bat")) : "mvn.bat"; } else { mvnCommand = new File(projectRootPom, "mvnw").exists() ? String.valueOf(new File(projectRootPom, "mvnw")) : "mvn"; } return mvnCommand; }