adjustments
This commit is contained in:
parent
cbca6e1598
commit
a1b5eace7f
|
|
@ -155,14 +155,14 @@ public class CompetitorList {
|
|||
return hS;
|
||||
}
|
||||
|
||||
public File createReportFile() throws IOException {
|
||||
public File createReportFile(String pathString) throws IOException {
|
||||
boolean exists;
|
||||
int count = 0;
|
||||
Path path;
|
||||
FileWriter report = null;
|
||||
|
||||
do {
|
||||
path = Path.of("src/main/resources/com/r0r5chach/report"+count+ ".txt");
|
||||
path = Path.of(pathString+"/report"+count+ ".txt");
|
||||
exists = Files.exists(path);
|
||||
|
||||
if(exists) {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public class Manager extends Application {
|
|||
@Override
|
||||
public void stop() {
|
||||
try {
|
||||
competitors.createReportFile();
|
||||
competitors.createReportFile("src/main/resources/com/r0r5chach");
|
||||
}
|
||||
catch (IOException e) {
|
||||
createErrorLog(e, "src/main/resources/com/r0r5chach/log.txt");
|
||||
|
|
|
|||
Loading…
Reference in New Issue