From ed28bcd0ba9462bf97175b8b33a94e1a0d60d309 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Thu, 18 Apr 2024 21:07:09 -0500 Subject: [PATCH] fix forge issues with already deleted lib folders --- forge/build.gradle | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/forge/build.gradle b/forge/build.gradle index 18ae90bde..57801c58f 100644 --- a/forge/build.gradle +++ b/forge/build.gradle @@ -62,9 +62,16 @@ afterEvaluate { // TODO can we just ignore these folders instead? // deleting them may cause issues if the OS locks the files // and it feels hacky - delete file("../common/build/libs") - delete file("../coreSubProjects/core/build/libs") - delete file("../coreSubProjects/api/build/libs") + try + { + delete file("../common/build/libs") + delete file("../coreSubProjects/core/build/libs") + delete file("../coreSubProjects/api/build/libs") + } + catch (ignored) + { + println('lib directories already deleted') + } } }