From 9ff551f873bbe13d0710ef8ecb552af37db213be Mon Sep 17 00:00:00 2001 From: YuDongYing <987425112@qq.com> Date: Tue, 5 Nov 2019 16:44:23 +0800 Subject: [PATCH] Fix a package file path error Because of the different file separators in different operating systems, the schemazip task in Windows system cannot be executed. Now it has been repaired --- gradle/docs.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle/docs.gradle b/gradle/docs.gradle index 8102dfb5509e..b7bcc042a967 100644 --- a/gradle/docs.gradle +++ b/gradle/docs.gradle @@ -148,14 +148,14 @@ task schemaZip(type: Zip) { def Properties schemas = new Properties(); subproject.sourceSets.main.resources.find { - it.path.endsWith("META-INF/spring.schemas") + (it.path.endsWith("META-INF/spring.schemas")||it.path.endsWith("META-INF\\spring.schemas")) }?.withInputStream { schemas.load(it) } for (def key : schemas.keySet()) { def shortName = key.replaceAll(/http.*schema.(.*).spring-.*/, '$1') assert shortName != key File xsdFile = subproject.sourceSets.main.resources.find { - it.path.endsWith(schemas.get(key)) + (it.path.endsWith(schemas.get(key))||it.path.endsWith(schemas.get(key).replaceAll('\\/','\\\\'))) } assert xsdFile != null into (shortName) {