File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
src/main/java/com/ibm/cldk/utils Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -91,28 +91,9 @@ private static String getGradleCmd() {
9191 private static boolean commandExists (String command ) {
9292 try {
9393 Process process = new ProcessBuilder ().directory (new File (projectRootPom )).command (command , "--version" ).start ();
94-
95- // Read the output stream
96- BufferedReader reader = new BufferedReader (
97- new InputStreamReader (process .getInputStream ())
98- );
99- String line ;
100- while ((line = reader .readLine ()) != null ) {
101- Log .info (line );
102- }
103-
104- // Read the error stream
105- BufferedReader errorReader = new BufferedReader (
106- new InputStreamReader (process .getErrorStream ())
107- );
108- while ((line = errorReader .readLine ()) != null ) {
109- Log .info (line );
110- }
111-
11294 int exitCode = process .waitFor ();
11395 return exitCode == 0 ;
11496 } catch (IOException | InterruptedException exceptions ) {
115- exceptions .printStackTrace ();
11697 return false ;
11798 }
11899 }
You can’t perform that action at this time.
0 commit comments