Skip to content

Commit

Permalink
Test if other delete code files graalvm trampoline error
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed Dec 4, 2024
1 parent 7d72f28 commit 2d0ba6e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions core/src/main/java/org/nzbhydra/database/DatabaseRecreation.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.WildcardFileFilter;
import org.apache.commons.lang3.RandomStringUtils;
import org.flywaydb.core.Flyway;
Expand Down Expand Up @@ -219,9 +218,13 @@ private static void migrateToH2v2IfNeeded(File databaseFile, String dbConnection
}
throw new RuntimeException(e);
}
FileUtils.deleteQuietly(fileOldVersion);
FileUtils.deleteQuietly(fileNewVersion);
FileUtils.deleteQuietly(new File(scriptFilePath));
try {
fileOldVersion.delete();
fileNewVersion.delete();
new File(scriptFilePath).delete();
} catch (Exception e) {
logger.info("Error deleting file", e);
}
}

private static List<String> getCommands(List<String> parameters, boolean useJava) {
Expand Down

0 comments on commit 2d0ba6e

Please sign in to comment.