modules/jdk.packager/src/main/java/com/oracle/tools/packager/AbstractBundler.java

Print this page




 135         //substitute
 136         String result = new String(baos.toByteArray());
 137         for (Map.Entry<String, String> e : pairs.entrySet()) {
 138             if (e.getValue() != null) {
 139                 result = result.replace(e.getKey(), e.getValue());
 140             }
 141         }
 142         return result;
 143     }
 144 
 145     @Override
 146     public String toString() {
 147         return getName();
 148     }
 149 
 150     @Override
 151     public void cleanup(Map<String, ? super Object> params) {
 152         if (!StandardBundlerParam.VERBOSE.fetchFrom(params)) {
 153             try {
 154                 IOUtils.deleteRecursive(StandardBundlerParam.BUILD_ROOT.fetchFrom(params));
 155             } catch (FileNotFoundException ignored) {}


 156         }
 157     }
 158 }


 135         //substitute
 136         String result = new String(baos.toByteArray());
 137         for (Map.Entry<String, String> e : pairs.entrySet()) {
 138             if (e.getValue() != null) {
 139                 result = result.replace(e.getKey(), e.getValue());
 140             }
 141         }
 142         return result;
 143     }
 144 
 145     @Override
 146     public String toString() {
 147         return getName();
 148     }
 149 
 150     @Override
 151     public void cleanup(Map<String, ? super Object> params) {
 152         if (!StandardBundlerParam.VERBOSE.fetchFrom(params)) {
 153             try {
 154                 IOUtils.deleteRecursive(StandardBundlerParam.BUILD_ROOT.fetchFrom(params));
 155             } catch (IOException e) {
 156                 Log.debug(e.getMessage());
 157             }
 158         }
 159     }
 160 }