Change PDF rename logic

Rework the rename logic used to include the reference PDF to try
and workaround the following local build error:

	Encountered duplicate path "reference/pdf/spring-boot-reference.pdf"
	during copy operation configured with DuplicatesStrategy.FAIL

See gh-20829
pull/20874/head
Phillip Webb 5 years ago
parent b50e8eb3aa
commit 5e028599f0

@ -240,7 +240,8 @@ task zip(type: Zip) {
}
from(asciidoctorPdf.outputDir) {
into "reference/pdf"
rename "index.pdf", "spring-boot-reference.pdf"
include "index.pdf"
rename { "spring-boot-reference.pdf" }
}
from(asciidoctorMultipage.outputDir) {
into "reference/html"

Loading…
Cancel
Save