165 String result = new String(baos.toByteArray());
166 for (Map.Entry<String, String> e : pairs.entrySet()) {
167 if (e.getValue() != null) {
168 result = result.replace(e.getKey(), e.getValue());
169 }
170 }
171 return result;
172 }
173
174 @Override
175 public String toString() {
176 return getName();
177 }
178
179 @Override
180 public void cleanup(Map<String, ? super Object> params) {
181 try {
182 IOUtils.deleteRecursive(
183 StandardBundlerParam.TEMP_ROOT.fetchFrom(params));
184 } catch (IOException e) {
185 Log.debug(e.getMessage());
186 }
187 }
188 }
|
165 String result = new String(baos.toByteArray());
166 for (Map.Entry<String, String> e : pairs.entrySet()) {
167 if (e.getValue() != null) {
168 result = result.replace(e.getKey(), e.getValue());
169 }
170 }
171 return result;
172 }
173
174 @Override
175 public String toString() {
176 return getName();
177 }
178
179 @Override
180 public void cleanup(Map<String, ? super Object> params) {
181 try {
182 IOUtils.deleteRecursive(
183 StandardBundlerParam.TEMP_ROOT.fetchFrom(params));
184 } catch (IOException e) {
185 Log.verbose(e.getMessage());
186 }
187 }
188 }
|