Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.39 KB

ReadMe.md

File metadata and controls

29 lines (23 loc) · 1.39 KB

file converter

This demo application converts txt file to jsonl file.

Build

  1. Min. java 8
  2. Maven 3.5.x
  3. Run mvn package in root of project(After checkout of project)

Run

  1. Running application/jar requires configuring below variable

If running via command line

  1. Go to target folder and execute below command with filepath and file name for I/O java -DinputFilePath=E:\wks\file-converter\files -DinputFileName="DSV input 1.txt" -DoutputFilePath=E:\wks\file-converter\files -DoutputFileName="DSV outPut.jsonl" -jar file-converter-1.0-SNAPSHOT-spring-boot.jar
  2. File would be generated in respective specified path

If running via bat file in root of project

  1. Configure "-D" variables and execute bat file present in root of project
  2. File would be generated in respective specified path

If no configuration value is specified

  1. File would be taken from the root where jar is present, so create/paste input file in root and Output would be generated with default name.

Variables

  1. inputFilePath=input file path
  2. inputFileName=input file name
  3. outputFilePath=output file path
  4. outputFileName= output file name/ if not specified then it would generate with default name i.e DSV output_<TIMESTAMO_AUTOGENERATED>.jsonl
  5. dateOfBirth= default to dateOfBirth, date header in file, if in future name is different then it can be configured