|
17 | 17 |
|
18 | 18 | import java.io.IOException; |
19 | 19 | import java.io.StringReader; |
| 20 | +import java.net.URL; |
20 | 21 | import java.sql.Clob; |
21 | 22 | import java.sql.Connection; |
22 | 23 | import java.sql.ResultSet; |
@@ -108,11 +109,11 @@ public void produceReport(final String reporterId, final List<String> pathList) |
108 | 109 |
|
109 | 110 | public void produceReportWithCoverage(final String realtimeReporterId, final String coverageReporterId, |
110 | 111 | final List<String> pathList, final List<String> schemaList, final List<String> includeObjectList, |
111 | | - final List<String> excludeObjectList) { |
| 112 | + final List<String> excludeObjectList, final URL htmlReportAssetPath) { |
112 | 113 | StringBuilder sb = new StringBuilder(); |
113 | 114 | sb.append("DECLARE\n"); |
114 | 115 | sb.append(" l_rt_rep ut_realtime_reporter := ut_realtime_reporter();\n"); |
115 | | - sb.append(" l_cov_rep ut_coverage_html_reporter := ut_coverage_html_reporter();\n"); |
| 116 | + sb.append(" l_cov_rep ut_coverage_html_reporter := ut_coverage_html_reporter(a_html_report_assets_path => ?);\n"); |
116 | 117 | sb.append("BEGIN\n"); |
117 | 118 | sb.append(" l_rt_rep.set_reporter_id(?);\n"); |
118 | 119 | sb.append(" l_rt_rep.output_buffer.init();\n"); |
@@ -143,7 +144,7 @@ public void produceReportWithCoverage(final String realtimeReporterId, final Str |
143 | 144 | sb.append(" sys.dbms_output.disable;\n"); |
144 | 145 | sb.append("END;"); |
145 | 146 | final String plsql = sb.toString(); |
146 | | - final Object[] binds = { realtimeReporterId, coverageReporterId }; |
| 147 | + final Object[] binds = { htmlReportAssetPath == null ? null : htmlReportAssetPath.toExternalForm(), realtimeReporterId, coverageReporterId }; |
147 | 148 | jdbcTemplate.update(plsql, binds); |
148 | 149 | } |
149 | 150 |
|
|
0 commit comments