This page is to detail the process for setting up the parser found here: https://github.com/albertopneto/parser.git
- Java 8 installed and JAVA_HOME configured in the path
- Gradle 6.3 installed and environment variable configured in the path
- Open a command line and clone the project from the git in any directory
git clone https://github.com/albertopneto/parser.git - Go to the cloned repository folder parser
Example: cd c:/assessment/parser - Run following command: gradle clean build
- Coverage report is available on PATH_TO_EXTRACTED_FOLDER/parser/build/reports/jacoco/test/html/index.html
PATH_TO_EXTRACTED_FOLDER is the place where the parser application was cloned
- Open a new terminal (if not opened) and go to the database folder
Example: cd c:/assessment/parser/database - Run following command:
java -cp hsqldb-2.6.0-jdk8.jar org.hsqldb.server.Server --database.0 file:. -dbname.0 parserdb - Run following command:
gradle bootRun --args "ABSOLUTE_PATH_TO_THE_FILE"
Example for the ABSOLUTE_PATH_TO_THE_FILE: "C:\logs\logfile.txt"
- Download the HSQL DB tool
- Provide following information:
URL: jdbc:hsqldb:hsql://localhost/database/parserdb
username: sa - Go to the console and execute:
select * from EVENT;
You should be able to see the events into the table