Support several templates
This commit is contained in:
parent
e4e6b6fc25
commit
145a8672ab
1 changed files with 0 additions and 6 deletions
|
@ -16,16 +16,11 @@ import java.util.Objects;
|
|||
public class TargetGenerator {
|
||||
private final Path outputPath;
|
||||
private final Path templatePath;
|
||||
private final boolean verbose;
|
||||
public static String ENDPOINTS_TEMPLATE_NAME = "endpoints.ftl";
|
||||
private final List<EndpointNode> endpoints;
|
||||
private final List<DataTypeNode> dataTypes;
|
||||
|
||||
public static class TargetGeneratorException extends Exception {
|
||||
public TargetGeneratorException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public TargetGeneratorException(Exception cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
@ -38,7 +33,6 @@ public class TargetGenerator {
|
|||
List<EndpointNode> endpoints,
|
||||
List<DataTypeNode> dataTypes
|
||||
) {
|
||||
this.verbose = verbose;
|
||||
this.outputPath = Objects.requireNonNull(
|
||||
outputPath,
|
||||
"Output path is required"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue