From 7e0a7520c063d74522368cbde0a92c53bac0008b Mon Sep 17 00:00:00 2001 From: Simplxs <44570052+Simplxss@users.noreply.github.com> Date: Fri, 25 Aug 2023 08:48:40 +0800 Subject: [PATCH] FIX skipping handbook generation when file is not found. (#2300) --- build.gradle | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 36acaba0f..464c47619 100644 --- a/build.gradle +++ b/build.gradle @@ -283,7 +283,7 @@ idea { // proto files and generated Java files are automatically added as // source dirs. // If you have additional sources, add them here: - sourceDirs += file('/proto/'); + sourceDirs += file('/proto/') } } @@ -354,31 +354,31 @@ tasks.register('generateHandbook') { println('NPM is not installed. Skipping handbook generation.') } else { // Check if the handbook resources are present. - if (!file('src/handbook/data/commands.json')) { + if (!file('src/handbook/data/commands.json').exists()) { println('Command data was not found. Skipping handbook generation.') return } - if (!file('src/handbook/data/avatars.csv')) { + if (!file('src/handbook/data/avatars.csv').exists()) { println('Avatar data was not found. Skipping handbook generation.') return } - if (!file('src/handbook/data/entities.csv')) { + if (!file('src/handbook/data/entities.csv').exists()) { println('Entity data was not found. Skipping handbook generation.') return } - if (!file('src/handbook/data/items.csv')) { + if (!file('src/handbook/data/items.csv').exists()) { println('Item data was not found. Skipping handbook generation.') return } - if (!file('src/handbook/data/mainquests.csv')) { + if (!file('src/handbook/data/mainquests.csv').exists()) { println('Main quest data was not found. Skipping handbook generation.') return } - if (!file('src/handbook/data/quests.csv')) { + if (!file('src/handbook/data/quests.csv').exists()) { println('Quest data was not found. Skipping handbook generation.') return } - if (!file('src/handbook/data/scenes.csv')) { + if (!file('src/handbook/data/scenes.csv').exists()) { println('Scene data was not found. Skipping handbook generation.') return }