Skip to content

Commit

Permalink
temp log
Browse files Browse the repository at this point in the history
  • Loading branch information
cameroncaci committed Dec 11, 2023
1 parent ae31c29 commit c5cd407
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>
<groupId>com.milmove.trdmlambda</groupId>
<artifactId>trdm-lambda</artifactId>
<version>1.0.2.7</version>
<version>1.0.2.8</version>
<name>trdm java spring interface</name>
<description>Project for deploying a Java TRDM interfacer for TGET data.</description>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,17 @@ public List<LineOfAccounting> parse(byte[] fileContent, XMLGregorianCalendar trd

logger.info("headers received and mapped, beginning to process every other line");
// Loop until the last line in the file is found
int lineCount = 0;
while (scanner.hasNextLine()) {
String line = scanner.nextLine();
lineCount++;
// "Unclassified" will always be the last line in the file
if (line.equals("Unclassified")) {
logger.info("finished parsing TGET data file from TRDM");
break;
}
String[] values = line.split("\\|");
logger.info("Line {} | Values Length: {} | Values: {}", lineCount, values.length, Arrays.toString(values));
LineOfAccounting code = processLineIntoLOA(values, columnNamesAndLocations, trdmLastUpdate);

if (code != null) {
Expand Down

0 comments on commit c5cd407

Please sign in to comment.