File tree Expand file tree Collapse file tree 2 files changed +20
-10
lines changed
maven-plugins/sitegen-maven-plugin/src/main
java/io/helidon/build/maven/sitegen
resources/templates/vuetify Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2018, 2022 Oracle and/or its affiliates.
2+ * Copyright (c) 2018, 2025 Oracle and/or its affiliates.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1616
1717package io .helidon .build .maven .sitegen ;
1818
19+ import java .io .PrintWriter ;
20+ import java .io .StringWriter ;
1921import java .util .ArrayDeque ;
2022import java .util .Arrays ;
2123import java .util .Deque ;
2426
2527import freemarker .template .TemplateException ;
2628
27- import static java .lang .System .lineSeparator ;
28- import static java .util .stream .Collectors .joining ;
29-
3029/**
3130 * An exception to represent any error occurring as part of site processing.
3231 */
@@ -47,11 +46,16 @@ public RenderingException(String msg) {
4746 * @param errors exceptions to aggregate
4847 */
4948 public RenderingException (List <RenderingException > errors ) {
50- this (errors .stream ()
51- .map (Throwable ::getMessage )
52- .collect (joining (lineSeparator ())));
49+ this (allErrorInfo (errors ));
5350 }
5451
52+ private static String allErrorInfo (List <RenderingException > errors ) {
53+ StringWriter sw = new StringWriter ();
54+ try (PrintWriter pw = new PrintWriter (sw )) {
55+ errors .forEach (t -> t .printStackTrace (pw ));
56+ return sw .toString ();
57+ }
58+ }
5559 /**
5660 * Create a new instance.
5761 *
Original file line number Diff line number Diff line change 11<#--
2- Copyright (c) 2018, 2022 Oracle and/or its affiliates.
2+ Copyright (c) 2018, 2025 Oracle and/or its affiliates.
33
44 Licensed under the Apache License, Version 2.0 (the "License");
55 you may not use this file except in compliance with the License.
5050<tr >
5151<#list row.cells as cell >
5252<#if cell.content?is_enumerable >
53- <#list cell.content as cellcontent ><td class =" ${cell_classes}" >${cellcontent} </td ></#list >
54- <#else ><td class =" ${cell_classes}" >${cell.content} </td >
53+ <#list cell.content as cellcontent ><td class =" ${cell_classes}"
54+ <#if cell.rowspan?? > rowspan="${cell.rowspan} "</#if >
55+ <#if cell.colspan?? > colspan="${cell.colspan} "</#if >
56+ >${cellcontent} </td ></#list >
57+ <#else ><td class =" ${cell_classes}"
58+ <#if cell.rowspan?? > rowspan="${cell.rowspan} "</#if >
59+ <#if cell.colspan?? > colspan="${cell.colspan} "</#if >
60+ >${cell.content} </td >
5561</#if >
5662</#list >
5763</tr >
You can’t perform that action at this time.
0 commit comments