aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2024-01-26 12:52:16 +0000
committerDominik Stadler <centic@apache.org>2024-01-26 12:52:16 +0000
commit98c52bcbbb76a60a606ff0815d3be7f7dd700369 (patch)
treeb4b536fa44f9b42d7e56a8ee533bccd2e062dbff
parent274a7e24f372cb15ed78cf097522fd32794fafd9 (diff)
downloadpoi-98c52bcbbb76a60a606ff0815d3be7f7dd700369.tar.gz
poi-98c52bcbbb76a60a606ff0815d3be7f7dd700369.zip
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
-rw-r--r--build.gradle6
1 files 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")