Skip to content

Commit 3433add

Browse files
committed
Add more test cases
Signed-off-by: Rahul Krishna <i.m.ralk@gmail.com>
1 parent 10b48d8 commit 3433add

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ public static String getMavenCommand() {
3939
.orElse(null);
4040
File mvnWrapper = System.getProperty("os.name").toLowerCase().contains("windows") ? new File(projectRootPom, "mvnw") : new File(projectRootPom, "mvnw.cmd");
4141

42-
String mvnCommand = commandExists(mvnWrapper).getKey() ? mvnWrapper.toString() : mvnSystemCommand;
43-
Log.debug(MessageFormat.format("Using {0} to build.", mvnWrapper.toString()));
44-
return mvnCommand;
42+
return commandExists(mvnWrapper).getKey() ? mvnWrapper.toString() : mvnSystemCommand;
4543
}
4644

4745
/**
@@ -135,7 +133,6 @@ private static AbstractMap.SimpleEntry<Boolean, String> commandExists(File comma
135133
private static boolean buildWithTool(String[] buildCommand) {
136134
Log.info("Building the project using " + buildCommand[0] + ".");
137135
ProcessBuilder processBuilder = new ProcessBuilder().directory(new File(projectRootPom)).command(buildCommand);
138-
139136
try {
140137
Process process = processBuilder.start();
141138
BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));

0 commit comments

Comments
 (0)