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