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() {
91
91
private static boolean commandExists (String command ) {
92
92
try {
93
93
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
-
112
94
int exitCode = process .waitFor ();
113
95
return exitCode == 0 ;
114
96
} catch (IOException | InterruptedException exceptions ) {
115
- exceptions .printStackTrace ();
116
97
return false ;
117
98
}
118
99
}
You can’t perform that action at this time.
0 commit comments