CSV Plugin
The plugin provides the ability to work with CSV files.
Installation
-
Copy the below line to
dependencies
section of the projectbuild.gradle
filePlease make sure to use the same version for all VIVIDUS dependencies. Example 1. build.gradleimplementation(group: 'org.vividus', name: 'vividus-plugin-csv', version: '0.6.7')
-
If the project was imported to the IDE before adding new dependency, re-generate the configuration files for the used IDE and then refresh the project in the used IDE.
Properties
Property Name | Acceptable values | Default | Description |
---|---|---|---|
|
<char> |
|
The char used for value separation, must not be a line break character |
|
<char> |
|
The char used to escape special characters in values, may be disabled |
Table Transformers
The table transformers properties marked with bold are mandatory. |
FROM_CSV
FROM_CSV
transformer generates table from the given CSV file.
Parameter | Description |
---|---|
|
The relative path of the CSV file |
|
The char used for value separation, must not be a line break character |
If delimiterChar
is not set, then the corresponding property will be used during parsing.
{transformer=FROM_CSV, csvPath=/data/example.csv}
{transformer=FROM_CSV, csvPath=/data/another-example.csv, delimiterChar=;}