src/jdk.jpackager/share/classes/jdk/jpackager/internal/IOUtils.java
branchJDK-8200758-branch
changeset 57020 a828547f7e50
parent 57017 1b08af362a30
equal deleted inserted replaced
57019:585939d9f952 57020:a828547f7e50
   203         BufferedReader br = new BufferedReader(isr);
   203         BufferedReader br = new BufferedReader(isr);
   204         String lineRead;
   204         String lineRead;
   205         while ((lineRead = br.readLine()) != null) {
   205         while ((lineRead = br.readLine()) != null) {
   206             if (consumer != null) {
   206             if (consumer != null) {
   207                 consumer.print(lineRead + '\n');
   207                 consumer.print(lineRead + '\n');
   208             } else if (verbose) {
       
   209                Log.info(lineRead);
       
   210             } else {
   208             } else {
   211                Log.debug(lineRead);
   209                Log.verbose(lineRead);
   212             }
   210             }
   213         }
   211         }
   214         try {
   212         try {
   215             int ret = p.waitFor();
   213             int ret = p.waitFor();
   216             if (ret != 0 && !(testForPresenseOnly && ret != 127)) {
   214             if (ret != 0 && !(testForPresenseOnly && ret != 127)) {