delete sqlfile on exit

This commit is contained in:
HorizonCode 2022-06-30 16:32:24 +02:00
parent 8221fb8ff7
commit 232f7340f0

View File

@ -106,11 +106,11 @@ public class DatabaseTask extends Task {
pb.stepTo(progressMonitor.getTotalWork()); pb.stepTo(progressMonitor.getTotalWork());
} catch (Exception exception) { } catch (Exception exception) {
exception.printStackTrace(); exception.printStackTrace();
FileUtils.deleteQuietly(outputSQLFile); outputSQLFile.deleteOnExit();
onDone(); onDone();
} }
progressMonitor.endProgressMonitor(); progressMonitor.endProgressMonitor();
FileUtils.deleteQuietly(outputSQLFile); outputSQLFile.deleteOnExit();
onDone(); onDone();
} catch (Exception ex) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();