diff --git a/parser/src/main/java/nu/zoom/tapir/TargetGenerator.java b/parser/src/main/java/nu/zoom/tapir/TargetGenerator.java index de207a7..537d132 100644 --- a/parser/src/main/java/nu/zoom/tapir/TargetGenerator.java +++ b/parser/src/main/java/nu/zoom/tapir/TargetGenerator.java @@ -19,6 +19,7 @@ public class TargetGenerator { public static String ENDPOINTS_TEMPLATE_NAME = "endpoints.ftl"; private final List endpoints; private final List dataTypes; + private final boolean verbose ; public static class TargetGeneratorException extends Exception { public TargetGeneratorException(Exception cause) { @@ -27,12 +28,13 @@ public class TargetGenerator { } public TargetGenerator( - final boolean verbose, + boolean verbose, Path outputPath, Path templatePath, List endpoints, List dataTypes ) { + this.verbose = verbose; this.outputPath = Objects.requireNonNull( outputPath, "Output path is required" @@ -66,6 +68,9 @@ public class TargetGenerator { StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING )) { + if (this.verbose) { + System.out.println("Processing " + template); + } HashMap templateData = new HashMap<>(); templateData.put("endpoints", endpoints); templateData.put("datatypes", dataTypes);