buildframework/helium/tools/common/java/src/com/nokia/ant/taskdefs/CoverageRecorderEntry.java
equal
deleted
inserted
replaced
109 */ |
109 */ |
110 protected static DocumentBuilder getDocumentBuilder() { |
110 protected static DocumentBuilder getDocumentBuilder() { |
111 try { |
111 try { |
112 return DocumentBuilderFactory.newInstance().newDocumentBuilder(); |
112 return DocumentBuilderFactory.newInstance().newDocumentBuilder(); |
113 } catch (Exception exc) { |
113 } catch (Exception exc) { |
114 throw new ExceptionInInitializerError(exc); |
114 throw new ExceptionInInitializerError(exc.getMessage()); |
115 } |
115 } |
116 } |
116 } |
117 |
117 |
118 /** Utility class representing the time an element started. */ |
118 /** Utility class representing the time an element started. */ |
119 protected static class TimedElement { |
119 protected static class TimedElement { |
428 out = new OutputStreamWriter(stream, "UTF8"); |
428 out = new OutputStreamWriter(stream, "UTF8"); |
429 out.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); |
429 out.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); |
430 (new DOMElementWriter()).write(buildElement.element, out, 0, "\t"); |
430 (new DOMElementWriter()).write(buildElement.element, out, 0, "\t"); |
431 out.flush(); |
431 out.flush(); |
432 } catch (IOException exc) { |
432 } catch (IOException exc) { |
433 throw new BuildException("Unable to write log file", exc); |
433 throw new BuildException("Unable to write log file " + exc.getMessage(), exc); |
434 } finally { |
434 } finally { |
435 if (out != null) { |
435 if (out != null) { |
436 try { |
436 try { |
437 out.close(); |
437 out.close(); |
438 } catch (IOException e) { |
438 } catch (IOException e) { |