]> source.dussan.org Git - poi.git/commitdiff
Ignore missing directory 'build/dist/maven' when deleting obsolete jars
authorDominik Stadler <centic@apache.org>
Fri, 26 Jan 2024 12:52:16 +0000 (12:52 +0000)
committerDominik Stadler <centic@apache.org>
Fri, 26 Jan 2024 12:52:16 +0000 (12:52 +0000)
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

index 4de86d557b1bbf45c4f274a59944aeffd775cdd0..a0d2bec6a3f1508237ba328b66e90f29a33a5451 100644 (file)
@@ -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")