[model] Log errors to a PrintWriter
*/
package org.jreleaser.util;
+import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
@@ -54,6 +55,11 @@ public class Errors {
configurationErrors.forEach(e -> logger.error(e.message));
}
+ public void logErrors(PrintWriter writer) {
+ assemblyErrors.forEach(e -> writer.println(e.message));
+ configurationErrors.forEach(e -> writer.println(e.message));
+ }
+
public enum Kind {
ASSEMBLY,
CONFIGURATION
