You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by sg...@apache.org on 2021/01/04 23:02:48 UTC
[freemarker-generator] 03/06: FREEMARKER-161 [freemarker-generator]
Allow multiple transformations on the CLI
This is an automated email from the ASF dual-hosted git repository.
sgoeschl pushed a commit to branch FREEMARKER-161
in repository https://gitbox.apache.org/repos/asf/freemarker-generator.git
commit 045dc66bace34fe3f592373749d8b3b04b82cc84
Author: Siegfried Goeschl <si...@gmail.com>
AuthorDate: Thu Dec 24 16:37:03 2020 +0100
FREEMARKER-161 [freemarker-generator] Allow multiple transformations on the CLI
---
.../base/template/TemplateTransformation.java | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
diff --git a/freemarker-generator-base/src/main/java/org/apache/freemarker/generator/base/template/TemplateTransformation.java b/freemarker-generator-base/src/main/java/org/apache/freemarker/generator/base/template/TemplateTransformation.java
index 1d0ce7d..6f0ed90 100644
--- a/freemarker-generator-base/src/main/java/org/apache/freemarker/generator/base/template/TemplateTransformation.java
+++ b/freemarker-generator-base/src/main/java/org/apache/freemarker/generator/base/template/TemplateTransformation.java
@@ -16,8 +16,6 @@
*/
package org.apache.freemarker.generator.base.template;
-import org.apache.freemarker.generator.base.datasource.DataSources;
-
import static java.util.Objects.requireNonNull;
/**
@@ -28,21 +26,11 @@ public class TemplateTransformation {
/** Source of template */
private final TemplateSource templateSource;
- /** Data sources being transformed */
- private final DataSources dataSources;
-
/** Output of template */
private final TemplateOutput templateOutput;
public TemplateTransformation(TemplateSource templateSource, TemplateOutput templateOutput) {
this.templateSource = requireNonNull(templateSource);
- this.dataSources = null;
- this.templateOutput = requireNonNull(templateOutput);
- }
-
- public TemplateTransformation(TemplateSource templateSource, DataSources dataSources, TemplateOutput templateOutput) {
- this.templateSource = requireNonNull(templateSource);
- this.dataSources = requireNonNull(dataSources);
this.templateOutput = requireNonNull(templateOutput);
}
@@ -54,15 +42,10 @@ public class TemplateTransformation {
return templateOutput;
}
- public DataSources getDataSources() {
- return dataSources;
- }
-
@Override
public String toString() {
- return "TemplateTransformation{" +
+ return "OutputGenerator{" +
"templateSource=" + templateSource +
- "dataSources=" + dataSources +
", templateOutput=" + templateOutput +
'}';
}