Skip to content

Commit

Permalink
Latest code changes in the Reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
amol.kadam committed Oct 8, 2024
1 parent 72280cd commit 9ec78cc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/utils/javautils/Reporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.time.temporal.ChronoUnit;
import java.util.Base64;
import java.util.Date;
import java.util.TimeZone;

/**
*
Expand Down Expand Up @@ -55,10 +56,12 @@ public class Reporter {


public static void setupReport() {
// Set the time zone to IST
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Kolkata"));

logStep("Reports are now getting generated");

// Change the parent directory to a temporary location
String parentDirectory = "/tmp/reports" + File.separator;
String parentDirectory = System.getProperty("user.dir") + File.separator + "reports" + File.separator;

createDirectory(parentDirectory);

Expand Down

0 comments on commit 9ec78cc

Please sign in to comment.