From 98c52bcbbb76a60a606ff0815d3be7f7dd700369 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Fri, 26 Jan 2024 12:52:16 +0000 Subject: [PATCH] Ignore missing directory 'build/dist/maven' when deleting obsolete jars Otherwise build may fail on a fresh checkout or after 'clean' git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915410 13f79535-47bb-0310-9956-ffa450edef68 --- build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 4de86d557b..a0d2bec6a3 100644 --- a/build.gradle +++ b/build.gradle @@ -240,7 +240,7 @@ subprojects { // in the build-dir as those lead to strange errors about "duplicate modules" // when building java9 JPMS class files ("java9") ant.delete(failOnError: true, verbose: true) { - fileset(dir: "../build/dist/maven/${project.archivesBaseName}") { + fileset(dir: "../build/dist/maven/${project.archivesBaseName}", erroronmissingdir: false) { include(name: '*.jar') exclude(name: "*${version}.jar") exclude(name: "*${version}-sources.jar") @@ -266,7 +266,7 @@ subprojects { } // use failOnError=false for -javadoc and -tests as not all modules create this directory ant.delete(failOnError: false, verbose: true) { - fileset(dir: "../build/dist/maven/${project.archivesBaseName}-javadoc") { + fileset(dir: "../build/dist/maven/${project.archivesBaseName}-javadoc", erroronmissingdir: false) { include(name: '*-javadoc.jar') exclude(name: "*${version}-javadoc.jar") @@ -281,7 +281,7 @@ subprojects { } } ant.delete(failOnError: false, verbose: true) { - fileset(dir: "../build/dist/maven/${project.archivesBaseName}-tests") { + fileset(dir: "../build/dist/maven/${project.archivesBaseName}-tests", erroronmissingdir: false) { include(name: '*-tests.jar') exclude(name: "*${version}-tests.jar") -- 2.39.5