This is an automated email from the ASF dual-hosted git repository.
sgoeschl pushed a commit to branch FREEMARKER-147
in repository https://gitbox.apache.org/repos/asf/freemarker-generator.git
The following commit(s) were added to refs/heads/FREEMARKER-147 by this push:
new 1aeb5f6 FREEMARKER-147 Complete Maven site documenation
1aeb5f6 is described below
commit 1aeb5f655364028a2ca2e1ee9a118a7bf77d8443
Author: Siegfried Goeschl <[email protected]>
AuthorDate: Thu Jun 25 18:28:36 2020 +0200
FREEMARKER-147 Complete Maven site documenation
---
.../site/markdown/cli/usage/transforming-csv.md | 27 ++++++++++++++++++----
freemarker-generator-maven-plugin/pom.xml | 23 ------------------
2 files changed, 23 insertions(+), 27 deletions(-)
diff --git
a/freemarker-generator-cli/src/site/markdown/cli/usage/transforming-csv.md
b/freemarker-generator-cli/src/site/markdown/cli/usage/transforming-csv.md
index 14667b8..0b0dd67 100644
--- a/freemarker-generator-cli/src/site/markdown/cli/usage/transforming-csv.md
+++ b/freemarker-generator-cli/src/site/markdown/cli/usage/transforming-csv.md
@@ -1,4 +1,4 @@
-## Working With CSV
+## Transforming CSV
A common task is changing the output format of a CSV file
@@ -55,6 +55,25 @@ freemarker-cli \
https://raw.githubusercontent.com/apache/freemarker-generator/master/freemarker-generator-cli/examples/data/csv/contract.csv
```
-
-
-
+### CSV Configuration Options
+
+The following options can be passed to template (as user-supplied parameters)
+
+| Parameter | Default Value | Description
|
+|---------------------------|-------------------|-----------------------------------------------------------|
+| CSV_SOURCE_FORMAT | DEFAULT | Source CSV format
|
+| CSV_SOURCE_DELIMITER | COMMA | Symbolic name of delimiter,
e.g. "COLON" or "SEMICOLON" |
+| CSV_SOURCE_WITH_HEADER | true | Whether the first rows are
headers |
+| CSV_TAGRGET_FORMAT | DEFAULT | Target CSV format
|
+| CSV_TARGET_DELIMITER | COMMA | Symbolic name of delimiter,
e.g. "COLON" or "SEMICOLON" |
+| CSV_TARGET_WITH_HEADER | true | Whether the first rows are
headers |
+
+The delimiters are passed as symbolic names since passing seperators breaks
command line handling
+
+* COMMA
+* HASH
+* PIPE
+* RS (ASCII record seperator)
+* SEMICOLON
+* SPACE
+* TAB
diff --git a/freemarker-generator-maven-plugin/pom.xml
b/freemarker-generator-maven-plugin/pom.xml
index e028aa8..be360ec 100644
--- a/freemarker-generator-maven-plugin/pom.xml
+++ b/freemarker-generator-maven-plugin/pom.xml
@@ -40,8 +40,6 @@
<jmockit.version>1.32</jmockit.version>
<org.testng.version>6.8</org.testng.version>
<assertj-core.version>3.8.0</assertj-core.version>
- <clover-target-percentage>100</clover-target-percentage>
- <clover-phase>pre-site</clover-phase>
</properties>
<dependencies>
@@ -153,27 +151,6 @@
</execution>
</executions>
</plugin>
- <plugin>
- <groupId>org.openclover</groupId>
- <artifactId>clover-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>clover</id>
- <phase>${clover-phase}</phase>
- <goals>
- <goal>instrument-test</goal>
- <goal>clover</goal>
- <goal>check</goal>
- </goals>
- <configuration>
-
<targetPercentage>${clover-target-percentage}</targetPercentage>
- <generateHtml>true</generateHtml>
- <generateXml>true</generateXml>
- <jdk>${maven.compiler.source}</jdk>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>